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

Web & Email Hosting

Get the best web & email hosting for speed, security and peace of mind. No restrictions, freedom to do what you need in order to run your business.

Host Now

Pin It on Pinterest

%d bloggers like this: