Action
rpress_customer_delete_inputs
On this page
Fires inside the customer move-to-trash form after the confirmation checkbox.
Runs inside the delete form beside the confirmation checkbox, so any form fields printed here are submitted with the form. Pair it with a handler on rpress_pre_delete_customer or a similar hook to read the submitted values.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$customer | RPRESS_Customer | The customer being viewed. |
Example#
function my_customer_delete_inputs( $customer ) {
echo '<p><label><input type="checkbox" name="my_notify_customer" value="1" /> ' . esc_html__( 'Notify the customer', 'my-plugin' ) . '</label></p>';
}
add_action( 'rpress_customer_delete_inputs', 'my_customer_delete_inputs', 10, 1 );
Source#
Fired from:
includes/admin/customers/customers.php(line 832), inrpress_customers_delete_view()
See also#
Was this page helpful?
