Skip to content

Instantly share code, notes, and snippets.

@manutheblacker
Created July 7, 2021 04:21
Show Gist options
  • Save manutheblacker/be6d971fddbbe25d50dfa73c6f8c75df to your computer and use it in GitHub Desktop.
Save manutheblacker/be6d971fddbbe25d50dfa73c6f8c75df to your computer and use it in GitHub Desktop.
<?php
//this hook take 3 parameters
// api_used : the api name selected into the SMS Gateway screen
// phone_number : the phone number who will receive the message
// message_to_send : the message that will be sent to the phone number
// you must return 200 if the delivery is successfully or 40X if it fails
add_filter('woo_usn_send_sms_to_customer', api_used, phone_number, message_to_send);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment