Developer Doc

A- A+

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'); }
[/php]

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'); }
[/php]

Changelog

– 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