WC_Validation::format_phone()public staticWC 1.0

Format a given phone number.

Method of the class: WC_Validation{}

No Hooks.

Return

String.

Usage

$result = WC_Validation::format_phone( $tel );
$tel(mixed) (required)
Phone number to format.

WC_Validation::format_phone() code WC 8.6.1

public static function format_phone( $tel ) {
	return wc_format_phone_number( $tel );
}