50% OFF Limited time deal!

wp_sms_add_subscriber

Updated on Feb 23, 2021

Description

Run the following action when a new user subscribed and become a subscriber.

 

Example:

Send SMS to a user when register a new subscriber.

function send_sms_when_subscribe_new_user($name, $mobile) {
    $to = array($mobile);
    $msg = "Hi {$name}, Thanks for subscribe.";
    wp_sms_send( $to, $msg )
}
add_action('wp_sms_add_subscriber', 'send_sms_when_subscribe_new_user', 10, 2);