Newsletters: Action – wpml_subscriber_saved

Description

wpml_subscriber_saved action hook is fired when a subscriber is saved (created or updated).

Arguments

  • $subscriber_id (ID of the subscriber that was saved).
  • $data (The data Array used to save the subscriber).

Example

function subscriber_saved($subscriber_id = null, $data = null) {
 // do something with the subscriber ID and data here
 // $subscriber = wpml_get_subscriber($subscriber_id);
}

add_action('wpml_subscriber_saved', 'subscriber_saved', 10, 2);

Earn Money by Referring People

Refer customers to us with your affiliate link and earn commission on sales from your link.

Get Started

Pin It on Pinterest

%d bloggers like this: