Skip to content
Docs
Get RestroPress

Action

rpress_customer_delete_inputs

Updated
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#

ParameterTypeDescription
$customerRPRESS_CustomerThe 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), in rpress_customers_delete_view()

See also#

Was this page helpful?