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