-
Notifications
You must be signed in to change notification settings - Fork 16
mc_phone_format
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Format a phone number for display in template tags.
add_filter(
'mc_phone_format',
function(
string $number,
string string
) {
// Your code here.
return $number;
},
10,
2
);-
string$numberPhone number as saved in$location->location_phone. -
stringstring$context 'phone2'. Other variable names:string $context 'phone'.,$phone,$phone2
string Formatted number.
apply_filters( 'mc_phone_format', wp_unslash( $location->location_phone ), 'phone' )apply_filters( 'mc_phone_format', wp_unslash( $location->location_phone2 ), 'phone2' )Replace the list footer for upcoming events lists. Default value </ul></div>.
add_filter(
'mc_upcoming_events_footer',
function( string $header ) {
// Your code here.
return $header;
}
);-
string$headerExisting upcoming events footer HTML.
string List header HTML.
apply_filters( 'mc_upcoming_events_footer', $footer )