WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WordPress SMS

Send a SMS via WordPress, Subscribe for sms newsletter and send an SMS to the subscriber newsletter.

  1. Upload wp-sms to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. To display Subscribe goto Themes -> Widgets, and adding Subscribe to SMS into your sidebar Or using this functions: <?php wp_subscribes(); ?> into theme.
  4. Using this functions for send manual SMS:
  • First: global $sms;
  • $sms->to = array('MobileNumber');
  • $sms->msg = "YourMessage";
  • Send SMS: $sms->SendSMS();

or using this Shortcode [subscribe] in Posts pages or Widget.

Actions

Run following action when send sms with this plugin.

wp_sms_send

Example: Send mail when send sms.

function send_mail_when_send_sms($message_info) {
    wp_mail('you@mail.com', 'Send SMS', $message_info);
}
add_action('wp_sms_send', 'send_mail_when_send_sms');

Run following action when subscribe a new user.

wp_sms_subscribe

Example: Send sms to user when register a new subscriber.

function send_sms_when_subscribe_new_user($name, $mobile) {
    global $sms;
    $sms->to = array($mobile);
    $sms->msg = "Hi {$name}, Thanks for subscribe.";
    $sms->SendSMS();
}
add_action('wp_sms_subscribe', 'send_sms_when_subscribe_new_user', 10, 2);

Requires: 3.0 or higher
Compatible up to: 3.9.1
Last Updated: 2014-7-24
Downloads: 29,857

Ratings

4 stars
4.9 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0
100,1,1
100,1,1 100,4,4
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1
100,1,1 100,1,1