Created
July 7, 2021 04:21
-
-
Save manutheblacker/be6d971fddbbe25d50dfa73c6f8c75df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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