Action
rpress_customer_after_tables
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#
| Parameter | Type | Description |
|---|---|---|
$customer | RPRESS_Customer | The 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), inrpress_customers_view()
See also#
Was this page helpful?
