WordPress at Your Fingertips
function is not described

WC_Validation::format_phone() public WC 1.0

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 5.7.1

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