Skip to content

Commit

Permalink
rename TWILIO_MESSAGING_SERVICE_SID to VIP_TWILIO_MESSAGING_SERVICE_S…
Browse files Browse the repository at this point in the history
…ID (#5739)
  • Loading branch information
andrea-sdl authored and rebeccahum committed Jul 25, 2024
1 parent b288a0b commit 0e73678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ function send_sms( $to, $message ) {
* If defined, we want to use the MessagingServiceSid to leverage all the automatic logic of the messaging service to route the SMS from the right "From" number.
* For example in some countries, the "From" number should be a local number to the recipient or an alphanumeric sender ID.
*/
if ( defined( 'TWILIO_MESSAGING_SERVICE_SID' ) ) {
$body['MessagingServiceSid'] = TWILIO_MESSAGING_SERVICE_SID;
if ( defined( 'VIP_TWILIO_MESSAGING_SERVICE_SID' ) ) {
$body['MessagingServiceSid'] = VIP_TWILIO_MESSAGING_SERVICE_SID;
} else {
$body['From'] = SMS_FROM_NUMBER;
}
Expand Down

0 comments on commit 0e73678

Please sign in to comment.