Skip to content
Docs
Get RestroPress

Action

rpress_customer_delete_bottom

Updated
On this page

Fires after the customer Delete section has been printed.

Runs at the end of rpress_customers_delete_view() after the form closes. Use it to print content below the move-to-trash card.

Parameters#

ParameterTypeDescription
$customerRPRESS_CustomerThe customer being viewed.

Example#

function my_customer_delete_bottom( $customer ) {
	echo '<p class="description">' . esc_html__( 'Trashed customers can be restored.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_customer_delete_bottom', 'my_customer_delete_bottom', 10, 1 );

Source#

Fired from:

  • includes/admin/customers/customers.php (line 844), in rpress_customers_delete_view()

See also#

Was this page helpful?