Git Product home page Git Product logo

wp-sms's Introduction

Average time to resolve an issue Percentage of issues still open

WP-SMS Plugin

A simple and powerful texting plugin for wordpress

You can add to wordpress, the ability of sending sms, member of sms newsletter and send to them sms. To every changement of position in wordpress, you can send a sms through this plugin.

The usage of this plugin is completely free. You have to just have an account from a service in the gateway listes that we support them. Don't worry , we have tried to add the best and the most gateways to plugin.

Very easy Send SMS by PHP code:

  1. global $sms;
  2. $sms->to = array('01000000000');
  3. $sms->msg = "Hello World!";
  4. $sms->SendSMS();

Do you like this project? Support it by donating

  • Paypal Paypal: Donate
  • btc Bitcoin: 1vKe5vWbr18KitxFeFnBfjBWcFGBxTd2N

Features

  • Supported +150 sms gateways. (List all gateways)
  • Send SMS to number(s), subscribers and wordpress users.
  • Subscribe newsletter SMS.
  • Send activation code to subscribe for complete subscription.
  • Notification SMS when published new post to subscribers.
  • Notification SMS when the new release of WordPress.
  • Notification SMS when registering a new User.
  • Notification SMS when get new comment.
  • Notification SMS when user logged into wordpress.
  • Notification SMS when user registered to subscription form.
  • Integrate with (Contact form 7, WooCommerce, Easy Digital Downloads)
  • Supported WP Widget for newsletter subscribers.
  • Support Wordpress Hooks.
  • Support WP REST API
  • Import/Export Subscribers.

Internationalization

WP SMS has been translated in to many languages, for the current list and contributors, please visit the translate page.

Translations are done by people just like you, help make WP SMS available to more people around the world and do a translation today!

Installation

  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('[email protected]', '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');

Rest API Endpoints

Add new subscribe to sms newsletter

POST /wpsms/v1/subscriber/add

Community Links

Thank you jetbrains for giving us Intellij IDEA Ultimate licenses for develop this project.

wp-sms's People

Contributors

mostafasoufi avatar nekofar avatar bgsrb avatar hsyntnc avatar rajesh6115 avatar tkjaergaard avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.