mc_phone_format - joedolson/my-calendar GitHub Wiki
Format a phone number for display in template tags.
Auto-generated Example
add_filter(
'mc_phone_format',
function(
string $number,
string string
) {
// Your code here.
return $number;
},
10,
2
);
Parameters
string$numberPhone number as saved in$location->location_phone.stringstring$context 'phone2'. Other variable names:string $context 'phone'.,$phone,$phone2
Returns
string Formatted number.
Files
apply_filters( 'mc_phone_format', wp_unslash( $location->location_phone ), 'phone' )
apply_filters( 'mc_phone_format', wp_unslash( $location->location_phone2 ), 'phone2' )