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