WordPress SMS API integration without plugin error

by madurange   Last Updated October 19, 2019 20:08 PM - source

I have created a code for WordPress to integrate my custom SMS API. The API URL works fine when I type it on the URL bar; but when it in the code, the API URL will not call. So this code not working when the customer places an order:

add_action( 'woocommerce_order_status_processing','mysite_woocommerce_order_status_processing' );
function mysite_woocommerce_order_status_processing( $order_id ) {



  $response = file_get_contents( $url );



Related Questions

How can add and preview product Frontend

Updated March 26, 2015 12:02 PM

How to add "Reply-to" in Woocommerce

Updated April 04, 2015 15:03 PM

WooCommerce epdq gateway Change order status

Updated April 06, 2015 19:03 PM