prefix . 'api_sms_any'; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE if not exists $table_name ( id mediumint(9) NOT NULL AUTO_INCREMENT, api varchar(200) DEFAULT 'api here' NOT NULL, UNIQUE KEY id (id) ) $charset_collate;"; require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta( $sql ); add_option( 'jal_db_version', $jal_db_version ); } function api_pro_jal_install_data() { global $wpdb; $table_name = $wpdb->prefix . 'api_sms_any'; $wpdb->insert( $table_name, array( 'id' => '', 'api' => 'api here' ) ); } function api_pro_plugin_remove_database() { global $wpdb; $table_name = $wpdb->prefix . "api_sms_any"; $sql = "DROP TABLE IF EXISTS $table_name;"; $wpdb->query($sql); delete_option("my_plugin_db_version"); } // Add settings link on plugin page function api_pro_sms_settings_link($links) { $settings_link = 'Settings'; array_unshift($links, $settings_link); return $links; } $plugin = plugin_basename(__FILE__); add_filter("plugin_action_links_$plugin", 'api_pro_sms_settings_link' ); // add_action( 'admin_menu', 'api_sms_any_main' ); register_deactivation_hook( __FILE__, 'api_pro_plugin_remove_database' ); register_activation_hook( __FILE__, 'api_pro_jal_install' ); register_activation_hook( __FILE__, 'api_pro_jal_install_data' ); // updation register_activation_hook(__FILE__, 'apisms_activation'); function apisms_activation() { $notices= get_option('my_plugin_deferred_admin_notices', array()); // $notices[]= "Any Api SMS For WooCommerce : Thanks for using this plugin"; update_option('my_plugin_deferred_admin_notices', $notices); } add_action('admin_init', 'apisms_admin_init'); function apisms_admin_init() { $current_version = 2.1; $version= get_option('my_plugin_version'); if ($version != $current_version) { // Do whatever upgrades needed here. update_option('my_plugin_version', $current_version); $notices= get_option('my_plugin_deferred_admin_notices', array()); $notices[]= "Any Api SMS For WooCommerce : Upgraded version $version to $current_version."; update_option('my_plugin_deferred_admin_notices', $notices); } } add_action('admin_notices', 'apisms_admin_notices'); function apisms_admin_notices() { if ($notices= get_option('my_plugin_deferred_admin_notices')) { foreach ($notices as $notice) { echo "

$notice

"; } delete_option('my_plugin_deferred_admin_notices'); } } register_deactivation_hook(__FILE__, 'apisms_deactivation'); function apisms_deactivation() { delete_option('my_plugin_version'); delete_option('my_plugin_deferred_admin_notices'); } // /** * WooCommerce notification submit customer order */ function api_pro_wps_wc_notify_customer($order_id){ global $woocommerce, $wpdb; $table_name = $wpdb->prefix . 'api_sms_any'; $result = $wpdb->get_row( "SELECT * FROM $table_name" ); // foreach ( $result as $print ) { $api=$result->api; $order = new WC_Order($order_id); $sms_mobile=$_REQUEST['billing_phone']; $customer_name=$_REQUEST['billing_first_name']; $sms_msg = urlencode("hi $customer_name, your order with the id $order_id has been successfully placed,thank you"); $api=str_replace("[mobile]",$sms_mobile,$api); $api=str_replace("[message]",$sms_msg,$api); $result = wp_remote_get("$api"); } add_action('woocommerce_new_order', 'api_pro_wps_wc_notify_customer',10,1); // function api_sms_any() { ?>

Any SMS Api For WooCommerce


prefix . 'api_sms_any'; $output=$wpdb->query("UPDATE $table_name SET api='$ur_api' WHERE id='$ur_api_id'"); if($output) { ?>
successfully updated

Please Wait....Reloading the page



Already updated (or) please Try again

"; } } global $wpdb; $table_name = $wpdb->prefix . 'api_sms_any'; $result = $wpdb->get_row( "SELECT * FROM $table_name" ); $api_id=$result->id; $api=$result->api; ?>
Repplace your mobile number with just [mobile] (this plugin take it from user billing phone number directly) , message text with just [message] (this plugin shoot pre defined sms with order id directly)

Your API:

EX:http://tra.xxxxx.com/websms/sendsms.aspx?userid=xxxxxx&password=xxxxx&sender=xxxxxx&phone=[mobile]&message=[message]


Help Documentation


500 transactional SMS RS 200


online payment available


Click Here.

** Professional Package **

1.Send SMS to any number(s)
2.Admin can get Order SMS notifications
3.Customizable SMS text
4.Different SMS send corresponding to different Order Status
5.Custom status 'SHIPPED' added. 6.Order sms send after successful payment Click

WOO SMS ANY API-Pro

or

Email me : support@konnectplugins.com