Skip to content
Docs
Get RestroPress

Action

rpress_customer_before_tables

Updated
On this page

Fires at the start of the customer detail orders and menu items wrapper.

Runs as the first thing inside the wrapper element that holds the Recent Orders, Contact & Address and Menu Items Ordered cards. Use it to print content at the top of that section.

Parameters#

ParameterTypeDescription
$customerRPRESS_CustomerThe customer being viewed.

Example#

function my_before_tables( $customer ) {
	echo '<p>' . esc_html__( 'Recent activity', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_customer_before_tables', 'my_before_tables', 10, 1 );

Source#

Fired from:

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

See also#

Was this page helpful?