Skip to content
Docs
Get RestroPress

Action

rpress_customer_after_tables

Updated
On this page

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

Runs after the Recent Orders, Contact & Address and Menu Items Ordered cards, still inside the wrapper element. Use it to add extra cards at the bottom of that section.

Parameters#

ParameterTypeDescription
$customerRPRESS_CustomerThe customer being viewed.

Example#

function my_after_tables( $customer ) {
	echo '<div class="rp-card"><p>' . esc_html( sprintf( 'Customer ID: %d', $customer->id ) ) . '</p></div>';
}
add_action( 'rpress_customer_after_tables', 'my_after_tables', 10, 1 );

Source#

Fired from:

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

See also#

Was this page helpful?