Filter: mc_phone_format

apply_filters( 'mc_phone_format', $number, $event, $context ) → {string}

Format a phone number for display in template tags.

Parameters:
Name Type Description
$number string

Phone number as saved in $event->event_phone.

$event object

Event object.

$context stirng

'phone'.

Source:
Returns:

Formatted number.

Type
string

apply_filters( 'mc_phone_format', $number, $location, $context ) → {string}

Format a phone number for display in template tags.

Parameters:
Name Type Description
$number string

Phone number as saved in $location->location_phone.

$location object

Location object.

$context string

'phone2'.

Source:
Returns:

Formatted number.

Type
string

apply_filters( 'mc_phone_format', $number, $location, $context ) → {string}

Format a phone number for display in template tags.

Parameters:
Name Type Description
$number string

Phone number as saved in $location->location_phone.

$location object

Location object.

$context string

'phone'.

Source:
Returns:

Formatted number.

Type
string

apply_filters( 'mc_phone_format', $number, $event, $context ) → {string}

Format a phone number for display in template tags.

Parameters:
Name Type Description
$number string

Phone number as saved in $event->event_phone2.

$event object

Event object.

$context string

'phone2'.

Source:
Returns:

Formatted number.

Type
string