WC_Validation::format_phone()
Format a given phone number.
{} It's a method of the class: WC_Validation{}
No Hooks.
Return
String
.
Usage
$result = WC_Validation::format_phone( $tel );
- $tel(mixed) (required)
- Phone number to format.
Code of WC_Validation::format_phone() WC Validation::format phone WC 6.5.1
public static function format_phone( $tel ) { return wc_format_phone_number( $tel ); }