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.
// 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
-
pbc_after_auto_bump
action/** * Fires after an automatic post-update refresh. */ do_action( 'pbc_after_auto_bump', array( 'type' => $type, 'bumped' => $bumped, 'purge' => $purge ) ); -
pbc_after_bump
action/** * Fires after the versions are bumped (and the page cache purge attempted). */ do_action( 'pbc_after_bump', $result ); -
pbc_cache_policy_rules
filter/** * Filters the generated .htaccess cache-policy rules. */ apply_filters( 'pbc_cache_policy_rules', $rules, $options ); -
/** * 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 ); -
pbc_purge_page_cache
filterapply_filters( 'pbc_purge_page_cache', true, $purge['plugin'] ); -
breeze_clear_all_cache
actiondo_action( 'breeze_clear_all_cache' ); -
litespeed_purge_all
actiondo_action( 'litespeed_purge_all', 'Prevent Browser Caching' ); -
pbc_assets_version
filterapply_filters( 'pbc_assets_version', $ver, $src, $handle ); -
pbc_skip_src
filterapply_filters( 'pbc_skip_src', $skip, $src, $handle ); -
wpfc_clear_all_cache
actiondo_action( 'wpfc_clear_all_cache' ); -
wphb_clear_page_cache
actiondo_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: