Support » Plugin: SMS Alert Order Notifications - WooCommerce » Send SMS using public function from another plugin

  • 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 1 year, 5 months ago by  ABHI.
    • This topic was modified 1 year, 5 months ago by  ABHI.
    • This topic was modified 1 year, 5 months ago by  ABHI.
    • This topic was modified 1 year, 5 months ago by  ABHI.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cozyvision1

    (@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.

    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>

    I was able to achieve this using your php library

    Thanks!

    Plugin Author cozyvision1

    (@cozyvision1)

    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.