mycred_twilio_phone_number
Description
This filter allows you to format a Twilio phone number into the way you format phone numbers on your website.
Requires SMS Payments version 2.0
Available since version 2.0
Parameters
Param | Type | Required | Description |
---|---|---|---|
$number |
string | Yes | The phone number Twilio sends. This is an unformatted phone number with the country code appended to the beginning. |
Used By
Package | Prio. | Description |
---|---|---|
Not used by any built-in package. |
Examples
Example 1: Phone numbers are stored as (xxx) xxx-xxxx in our database so we convert the Twilio number to the same format