Skip to content
Docs
Get RestroPress

Action

rpress_customer_pre_remove_email

Updated
On this page

Fires before an additional email is removed from a customer.

Fires in RPRESS_Customer::remove_email() after the address is validated, before the additional_email meta entry is deleted.

Parameters#

ParameterTypeDescription
$emailstringThe email address.
$customer_idintThe customer ID.
$customerRPRESS_CustomerThe customer object.

Example#

function my_customer_pre_remove_email( $email, $customer_id, $customer ) {
	error_log( 'Removing ' . $email . ' from customer ' . $customer_id );
}
add_action( 'rpress_customer_pre_remove_email', 'my_customer_pre_remove_email', 10, 3 );

Source#

Fired from:

  • includes/class-rpress-customer.php (line 280), in RPRESS_Customer::remove_email()

See also#

Was this page helpful?