-
Notifications
You must be signed in to change notification settings - Fork 16
mc_save_location
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Execute an action when a location is saved.
add_filter(
'mc_save_location',
function(
int|false $results,
array $add,
array $post
) {
// Your code here.
return $results;
},
10,
3
);-
int|false$resultsResult of database insertion. Row ID or false. -
array$addArray of location parameters to add. -
array$postPOST array.
int Before priority 10, returns the location ID; after priority 10 returns the location post ID. Sorry.
apply_filters( 'mc_save_location', $insert_id, $add, $post )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 )