• Resolved Abhi

    (@abhi9)


    Hi Team

    I wish to send SMS from another plugin using the public function send_custom_sms($data) on line #701 in SMSAlert-wc-order-sms.php. What data will I need to pass?

    Currently I have:

    $sendSMS = new smsalert_WC_Order_SMS();
    $sendSMS->send_custom_sms();
    • This topic was modified 8 years ago by Abhi.
    • This topic was modified 8 years ago by Abhi.
    • This topic was modified 8 years ago by Abhi.
    • This topic was modified 8 years ago by Abhi.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Cozy Vision Technologies Pvt. Ltd.

    (@cozyvision1)

    Hello,

    We have never tested calling any of our functions from any other plugin.

    FYI: the function send_custom_sms() is for sending custom sms from order page, and can not be used from any other plugin.

    If we have any such provision in future we will make a note of it in plugin description page.

    Thread Starter Abhi

    (@abhi9)

    Is there any other way we can send a custom sms in wordpress from another plugin?
    Maybe doing a HTTP Push?

    http://www.smsalert.co.in/api/push.json?apikey=<apikey>&route=<route>&sender=<senderid>&mobileno=<mob>&text=<text>

    Thread Starter Abhi

    (@abhi9)

    I was able to achieve this using your php library

    Thanks!

    Hello,

    Thank you for your request and patience.

    you can use our hook to send sms from any plugin, please refer to the below example to send sms.

    do_action('sa_send_sms','8010551055','This is a demo sms.');

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Send SMS using public function from another plugin’ is closed to new replies.