-
Notifications
You must be signed in to change notification settings - Fork 16
mc_cached_pages_to_refresh
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Filter URLS that should be refreshed in caches.
add_filter(
'mc_cached_pages_to_refresh',
function(
array $to_refresh,
string $action,
array $data,
int $event_id,
int $result
) {
// Your code here.
return $to_refresh;
},
10,
5
);-
array$to_refreshArray of post IDs to clear cache on. -
string$actionMy Calendar action executing. -
array$dataData passed from event. -
int$event_idEvent ID. -
int$resultResult of calendar database query.
array
apply_filters( 'mc_cached_pages_to_refresh', array( $mc_uri_id ), $action, $data, $event_id, $result )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 )