Skip to content
Docs
Get RestroPress

Action

rpress_customer_before_tables_wrapper

Updated
On this page

Fires on the customer detail view before the orders and menu items section wrapper.

Runs after the stats block and before the wrapper that contains the Recent Orders, Contact & Address and Menu Items Ordered cards. Use it to insert content ahead of that area.

Parameters#

ParameterTypeDescription
$customerRPRESS_CustomerThe customer being viewed.

Example#

function my_before_tables_wrapper( $customer ) {
	echo '<div class="rp-card"><p>' . esc_html( $customer->name ) . '</p></div>';
}
add_action( 'rpress_customer_before_tables_wrapper', 'my_before_tables_wrapper', 10, 1 );

Source#

Fired from:

  • includes/admin/customers/customers.php (line 581), in rpress_customers_view()

See also#

Was this page helpful?