mc_cached_pages_to_refresh - joedolson/my-calendar GitHub Wiki
Filter URLS that should be refreshed in caches.
Auto-generated Example
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
);
Parameters
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.
Returns
array
Files
apply_filters( 'mc_cached_pages_to_refresh', array( $mc_uri_id ), $action, $data, $event_id, $result )