SMS Verification

A- A+


Verify users via SMS and show information only to verified users. Verification
works for both logged in and not logged in users.

You can also verify users while registering. They can't log in until the user submits
the code.

If enabled, users also will need to verify when making a comment.

This plugin currently supports four SMS gateway

  1. SMSGlobal
  2. Clickatell
  3. Nexmo
  4. Twilio


You can install and configure the plugin from wp-admin  Plugins → Add New → Upload or manually uploading the unzipped folder via FTP to wp-content/plugins/ and activate later from wp-admin → Plugins

The Next thing is configuring the SMS gateway.


SMS Verification Gateway Configuration
SMS Verification Gateway Configuration

The first thing to configure is the SMS Gateways. You can configure all the 4 available SMS gateways at once. But can use only one at a time. And you have to choose the activate gateway from the switcher. The page to configure the SMS gateways can be found at wp-admin → Settings → SMS Verification → SMS Gateways. These fields are self-explanatory. So nothing much to describe here. If you have bought any bulk SMS package from any of the mentioned SMS gateways, they will provide you the API details to use your own software system. You can also contact their support to get the API details. When you are done with placing the API details, move on to the Messages tab. You will find all the messages coming from this plugin including the strings that will go in the SMS and show in the browser to the user.

SMS Verification Message Settings
SMS Verification Message Settings

The fields found here are self-explanatory and the default texts works fine for most of the users. But you can always customize them as you like. These fields will reduce the hassle of translating the plugin for your users. Next is the options to select where the plugin will work and where not.

Enable on comment form

Most of the time your blogs comment section is attacked by spammers and no firewall and security plugin can not save you from them. That is why we introduced the user verification in comment form. Till now, none of our users have complained about spamming after activating this option. And the most exciting things is you can get the mobile number of the users of your blog readers from your gateway provider and use them later for your products and promotion.

Enable on Registration

Turning this on helps you to verify your users while they sign up. So if you have this option enabled from the beginning of your site, and your commenting feature is only enabled for registered users only, then you are not going to need to verify the users in the comment form. This will reduce your servers some milliseconds for each user to check and verify. SMS Throttle and Duration These two are the most important features of this plugin. We know that SMS does not come free and each time a user requests for a verification code, you lose money. So we have made a feature to limit how much requests can be sent depending on time period. So this feature makes it more efficient and we got you covered with all the possible features you need.

SMS Verification Options
SMS Verification Options



The settings are for the registration and comment section. But if you do not want to force everyone to verify themselves via SMS, you can hide sensitive contents from the unverified users through shortcodes. You just need to place the opening and closing shortcodes to mark the content for verified users only. The shortcode starts with `[wedevssms]` then you place your content for verified users and then close it with `[/wedevssms]`.

shortcode to hide content from non verified users
Shortcode to hide content from non verified users
post preview with protected content
Post preview with protected content

If you want to change the text “Click to see the restricted text” then you can use the `title` attribute with the shortcode.

Custom text for hidden content
Custom text for hidden content


For developers

Restricting post and page contents might not seem enough for you and you could want to restrict a sidebar or a widget for non-verified users. So you can use the simple snippet below to do that.

[php] if ( wedevs_is_sms_verified() ) {
//your verified content goes here
} else { echo wedevs_sms_popup_link(‘link text'); }

Optionally you can give user id checking on the `wedevs_is_sms_verified` function. e.g

[php] if ( wedevs_is_sms_verified( $user_id ) ) {
//your verified content goes here
} else { echo wedevs_sms_popup_link(‘link text'); }


– v1.1.2

* Twilio gateway error fix

– v1.1

* Verification on register form and comment form added
* Nexmo and Twilio gateway added
* SMS throttling added