in Tags: wordpress

Hooks and Actions

This section is specifically for developers who wish to extend the functionality of this plugin as per their needs.

To Send SMS

do_action('sa_send_sms', '918010551055', 'Here is the sms.');

To Modify Parameters before sending any SMS

function modify_sms_text($params)
{
//do your stuff here
return $params;
}
add_filter('sa_before_send_sms', 'modify_sms_text');

To get SMS Alert Service Response after Send SMS

function get_smsalert_response($params)
{
//do your stuff here
return $params;
}
add_filter('sa_after_send_sms', 'get_smsalert_response');

Woocommerce before Send SMS

function public static function modify_sms_text($content, $wc_order_id)
{
//do your stuff here
return $content;
}
add_filter('sa_wc_order_sms_before_send', 'modify_sms_text', 1, 2);

Still can't find the solution for your Query?

Contact Support