Skip to content

mc_cached_pages_to_refresh

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

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_refresh Array of post IDs to clear cache on.
  • string $action My Calendar action executing.
  • array $data Data passed from event.
  • int $event_id Event ID.
  • int $result Result of calendar database query.

Returns

array

Files

apply_filters( 'mc_cached_pages_to_refresh', array( $mc_uri_id ), $action, $data, $event_id, $result )

← All Hooks

Clone this wiki locally