Action
rpress_customer_post_add_email
On this page
Fires after an additional email is attached to a customer.
Fires in RPRESS_Customer::add_email() after the additional_email meta write has been attempted, before the address is optionally promoted to primary. The write 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_add_email( $email, $customer_id, $customer ) {
do_action( 'my_sync_customer_email', $email, $customer_id );
}
add_action( 'rpress_customer_post_add_email', 'my_customer_post_add_email', 10, 3 );
Source#
Fired from:
includes/class-rpress-customer.php(line 263), inRPRESS_Customer::add_email()
See also#
Was this page helpful?
