Action
rpress_customer_delete_top
On this page
Fires before the Delete section of the customer screen is printed.
Runs at the start of rpress_customers_delete_view(), ahead of the danger zone card containing the move-to-trash form. Use it to print a warning or related information.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$customer | RPRESS_Customer | The customer being viewed. |
Example#
function my_customer_delete_top( $customer ) {
echo '<div class="notice notice-warning inline"><p>' . esc_html__( 'Customer data may be linked to loyalty accounts.', 'my-plugin' ) . '</p></div>';
}
add_action( 'rpress_customer_delete_top', 'my_customer_delete_top', 10, 1 );
Source#
Fired from:
includes/admin/customers/customers.php(line 813), inrpress_customers_delete_view()
See also#
Was this page helpful?
