Action
rpress_customer_post_remove_email
On this page
Fires after an additional email is removed from a customer.
Fires in RPRESS_Customer::remove_email() after the additional_email meta delete has been attempted. The delete result is not passed to callbacks.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$email | string | The email address. |
$customer_id | int | The customer ID. |
$customer | RPRESS_Customer | The customer object. |
Example#
function my_customer_post_remove_email( $email, $customer_id, $customer ) {
delete_transient( 'my_customer_emails_' . $customer_id );
}
add_action( 'rpress_customer_post_remove_email', 'my_customer_post_remove_email', 10, 3 );
Source#
Fired from:
includes/class-rpress-customer.php(line 282), inRPRESS_Customer::remove_email()
See also#
Was this page helpful?
