WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

WordPress SMS

A complete wordpress plugin to send sms with a high capability. Send SMS via WordPress, Subscribe SMS newsletter and Send SMS to Number(s), Subscribes

  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. or using this Shortcode [subscribe] in Posts pages or Widget.
  4. Using this functions for send manual SMS:
  • First: global $sms;
  • $sms->to = array('MobileNumber');
  • $sms->msg = "YourMessage";
  • Send SMS: $sms->SendSMS();

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_add_subscriber

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_add_subscriber', 'send_sms_when_subscribe_new_user', 10, 2);

Filters

You can use following filter for modify from number.

wp_sms_from

Example: Add 0 to the end sender number.

function wp_sms_modify_from($from) {
    $from = $from . ' 0';
    
    return $val;
}
add_filter('wp_sms_from', 'wp_sms_modify_from');

You can use following filter for modify receivers number.

wp_sms_to

Example: Add new number to get message.

function wp_sms_modify_receiver($numbers) {
    $numbers[] = '09xxxxxxxx';
    
    return $numbers;
}
add_filter('wp_sms_to', 'wp_sms_modify_receiver');

You can use following filter for modify text message.

wp_sms_msg

Example: Add signature to messages that are sent.

function wp_sms_modify_message($message) {
    $message = $message . ' /n Powerby: WP-SMS';
    
    return $message;
}
add_filter('wp_sms_msg', 'wp_sms_modify_message');

Requires: 3.0 or higher
Compatible up to: 4.6.1
Last Updated: 4 weeks ago
Active Installs: 3,000+

Ratings

3.6 out of 5 stars

Support

0 of 9 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
1 person says 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
100,1,1
100,1,1
0,1,0 0,1,0
100,1,1
100,1,1
0,1,0
0,1,0