WC_Validation::format_phone
Format a given phone number.
Method of the class: WC_Validation{}
No Hooks.
Returns
String.
Usage
$result = WC_Validation::format_phone( $tel );
- $tel(mixed) (required)
- Phone number to format.
WC_Validation::format_phone() WC Validation::format phone code WC 10.4.3
public static function format_phone( $tel ) {
return wc_format_phone_number( $tel );
}