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);
Beautiful Newsletter Templates
Professional newsletter templates that are fully responsive for desktop, tablet, and mobile. They are 100% cross-client compatible.