Newsletters: Action – wpml_subscriber_saved

[wpdocsparentlink]

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);
Shares

WordPress Plugins

Start selling products, sending newsletters, publishing ads and more through your own WordPress website using our premium WordPress plugins.

Browse

Pin It on Pinterest

%d bloggers like this: