Prevent Browser Caching icon
Performance & Caching

Prevent Browser Caching hooks reference

  • By Kostya Tereshchuk
  • v3.2.2
  • Updated

Prevent Browser Caching 3.2.2 has 6 actions and 5 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Prevent Browser Caching fires an action
add_action( 'pbc_after_auto_bump', function( $arg1 ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Prevent Browser Caching is about to use
add_filter( 'pbc_cache_policy_rules', function( $rules, $options ) {
	// Change $rules here.
	return $rules;
}, 10, 2 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/class-prevent-browser-caching.php line 492
    /**
     * Fires after an automatic post-update refresh.
     */
    do_action( 'pbc_after_auto_bump', array( 'type' => $type, 'bumped' => $bumped, 'purge' => $purge ) );
  • includes/class-prevent-browser-caching.php line 1433
    /**
     * Fires after the versions are bumped (and the page cache purge attempted).
     */
    do_action( 'pbc_after_bump', $result );
  • includes/class-prevent-browser-caching-cache-policy.php line 93
    /**
     * Filters the generated .htaccess cache-policy rules.
     */
    apply_filters( 'pbc_cache_policy_rules', $rules, $options );
  • includes/class-prevent-browser-caching-mcp.php line 96
    /**
     * Whether the plugin's abilities are listed as first-class tools on the MCP
     * Adapter's default server (default true). False keeps a site on the adapter's
     * meta-tools only; the abilities stay reachable through execute-ability.
     */
    apply_filters( 'prevent_browser_caching_mcp_direct_tools', true );
  • includes/class-prevent-browser-caching.php line 475 · used in 2 places
    apply_filters( 'pbc_purge_page_cache', true, $purge['plugin'] );
  • includes/class-prevent-browser-caching-integrations.php line 126
    do_action( 'breeze_clear_all_cache' );
  • includes/class-prevent-browser-caching-integrations.php line 82
    do_action( 'litespeed_purge_all', 'Prevent Browser Caching' );
  • includes/class-prevent-browser-caching.php line 519
    apply_filters( 'pbc_assets_version', $ver, $src, $handle );
  • pbc_skip_src

    filter
    includes/class-prevent-browser-caching.php line 549
    apply_filters( 'pbc_skip_src', $skip, $src, $handle );
  • includes/class-prevent-browser-caching-integrations.php line 104
    do_action( 'wpfc_clear_all_cache' );
  • includes/class-prevent-browser-caching-integrations.php line 140
    do_action( 'wphb_clear_page_cache' );

Generated from Prevent Browser Caching's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: