W3 Total Cache icon
Performance & Caching

W3 Total Cache hooks reference

  • By BoldGrid
  • v2.11.0
  • Updated

W3 Total Cache 2.11.0 has 72 actions and 174 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 W3 Total Cache fires an action
add_action( 'admin_xml_ns', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value W3 Total Cache is about to use
add_filter( 'w3tc_capability_admin_bar', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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

  • Util_Capability.php line 82 · used in 3 places
    /**
     * Legacy admin-bar base capability.
     */
    apply_filters( 'w3tc_capability_admin_bar', 'manage_options' );
  • PgCache_Environment.php line 336 · used in 2 places
    /**
     * Filter: Allow external code to suppress the page-cache rewrite rules.
     */
    apply_filters( 'w3tc_pgcache_rules_required', $required, $w3tc_c );
  • BrowserCache_Environment.php line 387
    /**
     * Filter: w3tc_browsercache_rules_apache_brotli
     */
    apply_filters( 'w3tc_browsercache_rules_apache_brotli', $rules_brotli );
  • BrowserCache_Environment.php line 463
    /**
     * Filter: w3tc_browsercache_rules_apache_cssjs
     */
    apply_filters( 'w3tc_browsercache_rules_apache_cssjs', $this->_rules_cache_generate_apache_for_type( $w3tc_config, $mime_types2['cssjs'], 'cssjs' ) );
  • BrowserCache_Environment.php line 448
    /**
     * Filter: w3tc_browsercache_rules_apache_deflate
     */
    apply_filters( 'w3tc_browsercache_rules_apache_deflate', $rules_deflate );
  • BrowserCache_Environment.php line 740
    /**
     * Filter: w3tc_browsercache_rules_apache_headers
     */
    apply_filters( 'w3tc_browsercache_rules_apache_headers', $rules_headers );
  • BrowserCache_Environment.php line 473
    /**
     * Filter: w3tc_browsercache_rules_apache_html
     */
    apply_filters( 'w3tc_browsercache_rules_apache_html', $this->_rules_cache_generate_apache_for_type( $w3tc_config, $mime_types2['html'], 'html' ) );
  • BrowserCache_Environment.php line 335
    /**
     * Filter: w3tc_browsercache_rules_apache_mime
     */
    apply_filters( 'w3tc_browsercache_rules_apache_mime', $rules_mime );
  • BrowserCache_Environment.php line 483
    /**
     * Filter: w3tc_browsercache_rules_apache_other
     */
    apply_filters( 'w3tc_browsercache_rules_apache_other', $this->_rules_cache_generate_apache_for_type( $w3tc_config, $mime_types2['other'], 'other' ) );
  • BrowserCache_Environment.php line 755
    /**
     * Filter: w3tc_browsercache_rules_apache_rewrite
     */
    apply_filters( 'w3tc_browsercache_rules_apache_rewrite', $g->rules_rewrite() );
  • Cache_Base.php line 467
    /**
     * Filter the list of classes permitted when unserializing cache payloads.
     */
    apply_filters( 'w3tc_cache_allowed_classes', $defaults, $context );
  • Generic_AdminActions_Default.php line 455
    /**
     * Floor the filterable cap at manage_options so a downstream filter cannot
     * lower the gate below admin.
     */
    apply_filters( 'w3tc_capability_config_save', 'manage_options' );
  • Extensions_AdminActions.php line 32
    /**
     * Per-extension capability gate, floored at manage_options. Prevents
     * non-admins from activating extensions even if a downstream filter lowers the
     * per-extension cap.
     */
    apply_filters( "w3tc_capability_extensions_activate_{$w3tc_extension}", 'manage_options' );
  • Util_Capability.php line 98
    /**
     * Legacy favorite-action capability filter.
     */
    apply_filters( 'w3tc_capability_favorite_action_flush_all', $capability );
  • Util_Capability.php line 91
    /**
     * Filters the capability required to purge all caches.
     */
    apply_filters( 'w3tc_capability_flush_all', $capability );
  • Util_Capability.php line 128
    /**
     * Filters the capability required to purge a specific post/page.
     */
    apply_filters( 'w3tc_capability_flush_post', $capability );
  • Util_Capability.php line 135
    /**
     * Legacy row-action capability filter.
     */
    apply_filters( 'w3tc_capability_row_action_w3tc_flush_post', $capability );
  • Generic_AdminActions_Default.php line 950
    /**
     * This filter is needed for compound keys to set the appropirate data type to
     * save as. Mainly used by extensions with textarea fields that don't feature a
     * ConfigKeys entry. If no filter exists to define such fields it will save as
     * a string, requiring post-processing.
     */
    apply_filters( 'w3tc_config_key_descriptor', $w3tc_descriptor, $w3tc_key );
  • inc/options/extensions/settings.php line 23
    /**
     * Extension settings template variables.
     */
    do_action( "w3tc_extension_page_{$w3tc_extension}" );
  • ConfigKeysSchema.php line 445
    /**
     * Filter the allowlist of dismissable `notes.*` identifiers.
     */
    apply_filters( 'w3tc_known_note_ids', $allowed );
  • PgCache_Environment.php line 1797
    /**
     * Filter: Allow extensions to append nginx rewrite-suppression conditions.
     */
    apply_filters( 'w3tc_pagecache_rules_nginx_rewrite_cond', '' );
  • PgCache_Environment.php line 1944
    /**
     * Filter: Allow modifying the key_postfix string used in the PGCACHE_CORE
     * block.
     */
    apply_filters( 'w3tc_pgcache_postfix_nginx', $key_postfix );
  • PgCache_Environment.php line 1582
    /**
     * Filter: Allow adding additional rules at the end of the PGCACHE_CORE block,
     * before the last rule.
     */
    apply_filters( 'w3tc_pgcache_rules_apache_last', $rules, $use_cache_rules, $document_root, $uri_prefix, $env_W3TC_ENC );
  • Util_Url.php line 522
    /**
     * Filters the HTTP/Varnish ports allowed for loopback PURGE.
     */
    apply_filters( 'w3tc_varnish_http_ports', $ports );
  • Varnish_Flush.php line 159
    /**
     * Allow RFC1918 and loopback-on-HTTP-port targets; refuse link-local,
     * reserved, and loopback on non-HTTP ports. Opt out per host via
     * `w3tc_varnish_skip_host_check`.
     */
    apply_filters( 'w3tc_varnish_skip_host_check', false, $varnish_host, $varnish_port );
  • BrowserCache_Environment_LiteSpeed.php line 121 · used in 3 places
    apply_filters( 'w3tc_browsercache_rules_section_extensions', $mime_types, $this->w3tc_c, $section );
  • admin_xml_ns

    action
    inc/error.php line 16 · used in 2 places
    do_action( 'admin_xml_ns' );
  • do_meta_boxes

    action
    Util_Widget.php line 91 · used in 2 places
    do_action( 'do_meta_boxes', $w3tc_screen->id, 'normal', '' );
  • Config.php line 224 · used in 2 places
    apply_filters( 'w3tc_config_default_values', array() );
  • Enterprise_Dbcache_WpdbInjection_Cluster.php line 729 · used in 2 places
    apply_filters( 'w3tc_dbcluster_after_query', $query );
  • Enterprise_Dbcache_WpdbInjection_Cluster.php line 690 · used in 2 places
    apply_filters( 'w3tc_dbcluster_query', $query );
  • lib/Minify/Minify/HTML.php line 337 · used in 2 places
    apply_filters( 'w3tc_minify_html_script_minifier', $minifier, $type, $script_tag );
  • w3tc_redirect

    action
    Util_Environment.php line 1334 · used in 2 places
    do_action( 'w3tc_redirect' );
  • Generic_Page_General.php line 92 · used in 2 places
    apply_filters( 'w3tc_settings_general_anchors', array() );
  • UsageStatistics_Sources.php line 102 · used in 2 places
    apply_filters( 'w3tc_usage_statistics_sources', $sources );
  • inc/options/common/header.php line 14 · used in 2 places
    do_action( 'w3tc-dashboard-head' );
  • Generic_Plugin_Admin.php line 567
    do_action( "admin_init_{$page_val}" );
  • cron_request

    filter
    Util_Environment.php line 1964
    apply_filters( 'cron_request', $cron_request_array );
  • Util_Activation.php line 39
    do_action( "deactivate_{W3TC_FILE}" );
  • Util_Activation.php line 29
    do_action( 'deactivate_plugin', W3TC_FILE );
  • Util_Activation.php line 40
    do_action( 'deactivated_plugin', W3TC_FILE );
  • Util_Environment.php line 1959
    apply_filters( 'https_local_ssl_verify', $sslverify );
  • Root_AdminActions.php line 133
    apply_filters( 'w3tc_admin_actions', $handlers );
  • Generic_Plugin.php line 726
    apply_filters( 'w3tc_admin_bar_menu', $menu_items );
  • Root_AdminMenu.php line 146
    apply_filters( 'w3tc_admin_menu', $pages, $this->_config );
  • w3tc_ajax

    action
    Generic_Plugin_Admin.php line 374
    do_action( 'w3tc_ajax' );
  • Generic_Plugin_Admin.php line 375
    do_action( "w3tc_ajax_{$action}" );
  • Generic_Plugin_Admin.php line 358
    apply_filters( 'w3tc_ajax_base_capability_', 'manage_options' );
  • Generic_Plugin_Admin.php line 359
    apply_filters( "w3tc_ajax_capability_{$action}", $base_capability );
  • Extension_AlwaysCached_Worker.php line 32
    apply_filters( 'w3tc_alwayscached_worker_timeslot', $timeslot_seconds );
  • Util_Debug.php line 149
    do_action( 'w3tc_audit_log', $event, $context );
  • BrowserCache_Environment.php line 757
    apply_filters( 'w3tc_browsercache_rules_apache', $rules );
  • BrowserCache_Environment_LiteSpeed.php line 140
    apply_filters( 'w3tc_browsercache_rules_section', $section_rules, $this->w3tc_c, $section );
  • Cdn_Core.php line 873
    apply_filters( 'w3tc_build_cdn_file_array', $w3tc_file );
  • CacheGroups_Plugin_Admin.php line 125
    apply_filters( 'w3tc_cached_mobile_groups', $cached_mobile_groups );
  • PgCache_ContentGrabber.php line 549
    apply_filters( 'w3tc_can_cache', $original_can_cache, $this, $buffer );
  • Util_Content.php line 70
    apply_filters( 'w3tc_can_print_comment', self::is_html_xml( $buffer ) && ! defined( 'DOING_AJAX' ) );
  • Generic_Plugin.php line 763
    apply_filters( "w3tc_capability_admin_bar_{$item_id}", $default_cap );
  • Licensing_Plugin_Admin.php line 373
    apply_filters( 'w3tc_capability_admin_notices', 'manage_options' );
  • Generic_Plugin_Admin.php line 824
    apply_filters( 'w3tc_capability_menu', $base_capability );
  • Root_AdminMenu.php line 190
    apply_filters( "w3tc_capability_menu_{$slug}", $base_capability );
  • Root_AdminMenu.php line 171
    apply_filters( 'w3tc_capability_menu_w3tc_dashboard', $base_capability );
  • Cdn_Core_Admin.php line 307
    apply_filters( 'w3tc_cdn_add_attachment', $post_files );
  • Cdnfsd_CloudFront_Engine.php line 97
    apply_filters( 'w3tc_cdn_cf_flush_all_uris', array( '/*' ) );
  • Cdn_Core.php line 604
    apply_filters( 'w3tc_cdn_config_headers', array() );
  • Cdn_Plugin.php line 377
    apply_filters( 'w3tc_cdn_delete_attachment', $files );
  • CacheFlush_Locally.php line 204
    do_action( 'w3tc_cdn_purge_all' );
  • CacheFlush_Locally.php line 209
    do_action( 'w3tc_cdn_purge_all_after' );
  • CacheFlush_Locally.php line 226
    do_action( 'w3tc_cdn_purge_files', $purgefiles );
  • CacheFlush_Locally.php line 230
    do_action( 'w3tc_cdn_purge_files_after', $purgefiles );
  • Cdn_Environment_LiteSpeed.php line 68
    apply_filters( 'w3tc_cdn_rules_section', $section_rules, $this->w3tc_c );
  • Cdn_Plugin.php line 351
    apply_filters( 'w3tc_cdn_update_attachment', $files );
  • Cdn_Plugin.php line 399
    apply_filters( 'w3tc_cdn_update_attachment_metadata', $files );
  • w3tc_cdn_url

    filter
    Cdn_Core.php line 821
    apply_filters( 'w3tc_cdn_url', $new_url, $w3tc_url, $is_engine_mirror );
  • Util_Environment.php line 2280
    apply_filters( 'w3tc_cloudflare_proxy_cidrs', $cidrs );
  • inc/lightbox/self_test.php line 438
    apply_filters( 'w3tc_compatibility_test', __return_empty_array() );
  • Config.php line 400
    apply_filters( "w3tc_config_item_{$w3tc_key}", $v );
  • Util_Ui.php line 210
    apply_filters( 'w3tc_config_labels', array() );
  • Config.php line 841
    do_action( 'w3tc_config_save', $this );
  • Generic_AdminActions_Default.php line 701
    do_action( 'w3tc_config_ui_save', $w3tc_config, $this->_config );
  • Generic_AdminActions_Default.php line 702
    do_action( "w3tc_config_ui_save-{$this->_page}", $w3tc_config, $this->_config );
  • Util_Ui.php line 482
    apply_filters( 'w3tc_dashboard_actions', array() );
  • inc/options/common/top_nav_bar.php line 116
    do_action( 'w3tc_dashboard_top_nav_bar' );
  • Util_Widget.php line 50
    apply_filters( 'w3tc_dashboard_widgets', array() );
  • DbCache_WpdbNew.php line 297
    do_action( 'w3tc_db_delete', $table, $where, $where_format );
  • DbCache_WpdbNew.php line 205
    do_action( 'w3tc_db_insert', $table, $w3tc_data, $format );
  • DbCache_WpdbNew.php line 267
    do_action( 'w3tc_db_replace', $table, $w3tc_data, $format );
  • DbCache_WpdbNew.php line 283
    do_action( 'w3tc_db_update', $table, $w3tc_data, $where, $format, $where_format );
  • DbCache_WpdbInjection_QueryCaching.php line 246
    apply_filters( 'w3tc_dbcache_cache_set', $filter_data );
  • DbCache_WpdbInjection_QueryCaching.php line 182
    apply_filters( 'w3tc_dbcache_can_cache_sql', ( $caching ? '' : $reject_reason ), $query );
  • DbCache_WpdbInjection_QueryCaching.php line 817
    apply_filters( 'w3tc_dbcache_get_flush_groups', $groups_to_flush, $w3tc_group, $extras );
  • DbCache_WpdbInjection_QueryCaching.php line 752
    apply_filters( 'w3tc_dbcache_get_sql_group', $w3tc_group, $sql, $tables );
  • Extensions_Util.php line 204
    do_action( "w3tc_deactivate_extension_{$w3tc_extension}" );
  • UserExperience_DeferScripts_Extension.php line 93
    apply_filters( 'w3tc_deferscripts_can_process', $can_process );
  • UserExperience_DeferScripts_Extension.php line 119
    apply_filters( 'w3tc_deferscripts_embed_script', $buffer );
  • UserExperience_DeferScripts_Extension.php line 121
    apply_filters( 'w3tc_deferscripts_is_embed_script', true );
  • UserExperience_DeferScripts_Mutator.php line 64
    apply_filters( 'w3tc_deferscripts_mutator_before', array( 'buffer' => $buffer, 'modified' => $this->modified, ) );
  • PgCache_ContentGrabber.php line 2372
    apply_filters( 'w3tc_dynamic_callbacks', array() );
  • Root_Environment.php line 120
    do_action( 'w3tc_environment_fix_after_deactivation' );
  • Root_Environment.php line 88
    do_action( 'w3tc_environment_fix_on_event', $w3tc_config, $event );
  • Root_Environment.php line 51
    do_action( 'w3tc_environment_fix_on_wpadmin_request', $w3tc_config, $force_all_checks );
  • Generic_Page_Install.php line 34
    apply_filters( 'w3tc_environment_get_other_instructions', $other_areas );
  • Root_Environment.php line 149
    apply_filters( 'w3tc_environment_get_required_rules', $required_rules, $w3tc_config );
  • w3tc_errors

    filter
    Generic_Plugin_Admin.php line 1588
    apply_filters( 'w3tc_errors', $errors );
  • inc/options/extensions/list.php line 244
    do_action( 'w3tc_extension_after_row', $w3tc_extension );
  • inc/options/extensions/list.php line 245
    do_action( "w3tc_extension_after_row-{$w3tc_extension}" );
  • inc/options/extensions/list.php line 102
    do_action( "w3tc_extension_before_row-{$w3tc_extension}" );
  • Root_Loader.php line 215
    do_action( 'w3tc_extension_load' );
  • Root_Loader.php line 217
    do_action( 'w3tc_extension_load_admin' );
  • inc/options/extensions/list.php line 194
    apply_filters( "w3tc_extension_requirements-{$w3tc_extension}", $w3tc_meta['requirements'] );
  • inc/options/extensions/list.php line 199
    do_action( "w3tc_extension_requirements-{$w3tc_extension}" );
  • Extensions_Util.php line 23
    apply_filters( 'w3tc_extensions', array(), $w3tc_config );
  • Extensions_Plugin_Admin.php line 166
    apply_filters( 'w3tc_extensions_hooks', $w3tc_hooks );
  • Util_Environment.php line 171
    apply_filters( 'w3tc_filename_to_url', $w3tc_url );
  • CacheFlush_Locally.php line 185
    do_action( 'w3tc_flush_after_browsercache' );
  • CacheFlush_Locally.php line 103
    do_action( 'w3tc_flush_after_fragmentcache' );
  • CacheFlush_Locally.php line 119
    do_action( 'w3tc_flush_after_fragmentcache_group', $w3tc_group );
  • CacheFlush_Locally.php line 146
    do_action( 'w3tc_flush_after_minify' );
  • CacheFlush_Locally.php line 78
    do_action( 'w3tc_flush_after_objectcache' );
  • CacheFlush_Locally.php line 318
    do_action( 'w3tc_flush_all', $extras );
  • CacheFlush_Locally.php line 183
    do_action( 'w3tc_flush_browsercache' );
  • CacheFlush_Locally.php line 46
    do_action( 'w3tc_flush_dbcache' );
  • CacheFlush_Locally.php line 396
    apply_filters( 'w3tc_flush_execute_delayed_operations', $actions_made );
  • CacheFlush_Locally.php line 102
    do_action( 'w3tc_flush_fragmentcache' );
  • CacheFlush_Locally.php line 118
    do_action( 'w3tc_flush_fragmentcache_group', $w3tc_group );
  • CacheFlush_Locally.php line 335
    do_action( 'w3tc_flush_group', $w3tc_group, $extras );
  • CacheFlush_Locally.php line 143
    do_action( 'w3tc_flush_minify' );
  • CacheFlush_Locally.php line 74
    do_action( 'w3tc_flush_objectcache' );
  • CacheFlush_Locally.php line 261
    do_action( 'w3tc_flush_post', $post_id, $force, $extras );
  • CacheFlush_Locally.php line 277
    do_action( 'w3tc_flush_posts', $extras );
  • CacheFlush_Locally.php line 352
    do_action( 'w3tc_flush_url', $w3tc_url, $extras );
  • Util_Environment.php line 1627
    apply_filters( 'w3tc_flushable_post', $flushable, $post, $w3tc_module );
  • CacheFlush.php line 196
    apply_filters( 'w3tc_flushable_posts', false, $extras );
  • Generic_WidgetBoldGrid.php line 20
    apply_filters( 'w3tc_generic_boldgrid_show', self::should_show_widget() );
  • Generic_AdminActions_Default.php line 296
    do_action( "w3tc_hide_button_custom-{$w3tc_note}" );
  • Generic_AdminActions_Default.php line 155
    do_action( "w3tc_hide_button-{$w3tc_note}" );
  • Extension_ImageService_Plugin_Admin.php line 1770
    apply_filters( 'w3tc_imageservice_submit_capability', 'manage_options', (int) $post_id );
  • PgCache_ContentGrabber.php line 2845
    apply_filters( 'w3tc_is_cacheable_content_type', array( '', 'application/json', 'text/html', 'text/xml', 'text/xsl', 'application/xhtml+xml', 'application/rss+xml', 'application/atom+xml', 'application/rdf+xml', 'application/xml', ) );
  • UserExperience_LazyLoad_Plugin.php line 99
    apply_filters( 'w3tc_lazyload_can_process', $can_process );
  • UserExperience_LazyLoad_Plugin.php line 120
    apply_filters( 'w3tc_lazyload_embed_script', $buffer );
  • UserExperience_LazyLoad_Mutator.php line 63
    apply_filters( 'w3tc_lazyload_excludes', $this->w3tc_config->get_array( 'lazyload.exclude' ) );
  • UserExperience_LazyLoad_Plugin.php line 122
    apply_filters( 'w3tc_lazyload_is_embed_script', true );
  • UserExperience_LazyLoad_Mutator.php line 65
    apply_filters( 'w3tc_lazyload_mutator_before', array( 'buffer' => $buffer, 'modified' => $this->modified, ) );
  • UserExperience_LazyLoad_Plugin.php line 207
    apply_filters( 'w3tc_lazyload_on_initialized_javascript', '' );
  • Generic_Plugin_Admin.php line 632
    do_action( "w3tc_message_action_{$action}" );
  • Generic_Plugin_Admin.php line 639
    do_action( "w3tc_message_action_{$w3tc_message_action_val}" );
  • Enterprise_SnsServer.php line 182
    do_action( 'w3tc_messagebus_message_processed' );
  • Enterprise_SnsServer.php line 170
    do_action( 'w3tc_messagebus_message_received' );
  • Minify_Plugin.php line 250
    apply_filters( 'w3tc_minify_before', $buffer );
  • lib/Minify/Minify.php line 619
    apply_filters( 'w3tc_minify_css_content', $content, null, null );
  • Minify_AutoCss.php line 267
    apply_filters( 'w3tc_minify_css_do_excluded_tag_style_minification', $w3tc_data );
  • Minify_AutoCss.php line 316
    apply_filters( 'w3tc_minify_css_do_flush_collected', true, $last_style_tag, $this );
  • Minify_AutoCss.php line 204
    apply_filters( 'w3tc_minify_css_do_local_style_minification', $w3tc_data );
  • Minify_AutoCss.php line 245
    apply_filters( 'w3tc_minify_css_do_tag_minification', $do_tag_minification, $style_tag, $w3tc_file );
  • Minify_Plugin.php line 243
    apply_filters( 'w3tc_minify_css_enable', $css_enable );
  • Minify_AutoCss.php line 332
    apply_filters( 'w3tc_minify_css_step', $w3tc_data );
  • Minify_AutoCss.php line 343
    apply_filters( 'w3tc_minify_css_step_style_to_embed', $w3tc_data );
  • Minify_AutoCss.php line 119
    apply_filters( 'w3tc_minify_css_style_tags', $style_tags );
  • Minify_Plugin.php line 225
    apply_filters( 'w3tc_minify_enable', $enable );
  • Minify_MinifiedFileRequestHandler.php line 448
    apply_filters( 'w3tc_minify_file_handler_minify_options', $serve_options );
  • Minify_Plugin.php line 244
    apply_filters( 'w3tc_minify_html_enable', $html_enable );
  • Minify_Plugin.php line 1522
    apply_filters( 'w3tc_minify_http2_preload_url', array( 'result_link' => $uri, 'original_url' => $w3tc_url, ) );
  • lib/Minify/Minify.php line 622
    apply_filters( 'w3tc_minify_js_content', $content, null, null );
  • Minify_AutoJs.php line 284
    apply_filters( 'w3tc_minify_js_do_excluded_tag_script_minification', $w3tc_data );
  • Minify_AutoJs.php line 367
    apply_filters( 'w3tc_minify_js_do_flush_collected', true, $last_script_tag, $this, $sync_type );
  • Minify_AutoJs.php line 220
    apply_filters( 'w3tc_minify_js_do_local_script_minification', $w3tc_data );
  • Minify_AutoJs.php line 262
    apply_filters( 'w3tc_minify_js_do_tag_minification', $do_tag_minification, $script_tag, $w3tc_file );
  • Minify_Plugin.php line 242
    apply_filters( 'w3tc_minify_js_enable', $js_enable );
  • Minify_AutoJs.php line 123
    apply_filters( 'w3tc_minify_js_script_tags', $script_tags );
  • Minify_AutoJs.php line 395
    apply_filters( 'w3tc_minify_js_step', $w3tc_data );
  • Minify_AutoJs.php line 421
    apply_filters( 'w3tc_minify_js_step_script_to_embed', $w3tc_data );
  • Minify_Plugin.php line 272
    apply_filters( 'w3tc_minify_processed', $buffer );
  • Minify_Plugin.php line 1242
    apply_filters( 'w3tc_minify_url_for_files', $w3tc_url, $files, $type );
  • Minify_Core.php line 43
    apply_filters( 'w3tc_minify_urls_for_minification_to_minify_filename', $minify_filename, $files, $type );
  • CacheGroups_Plugin_Admin.php line 149
    apply_filters( 'w3tc_mobile_groups', $mobile_groups );
  • ModuleStatus.php line 94
    apply_filters( "w3tc_module_is_running-{$w3tc_module}", $this->is_enabled( $w3tc_module ) );
  • Util_Widget.php line 46
    do_action( 'w3tc_network_dashboard_setup' );
  • Util_Widget.php line 47
    apply_filters( 'w3tc_network_dashboard_widgets', array() );
  • Extension_NewRelic_Plugin.php line 171
    apply_filters( 'w3tc_newrelic_should_disable_auto_rum', null );
  • w3tc_notes

    filter
    Generic_Plugin_Admin.php line 1589
    apply_filters( 'w3tc_notes', $w3tc_notes );
  • ObjectCache_Environment.php line 35
    apply_filters( 'w3tc_objectcache_addin_required', $objectcache_enabled );
  • PgCache_ContentGrabber.php line 424
    apply_filters( 'w3tc_page_extract_group', $page_key_extension['group'], $this->_request_url_fragments['host'] . $this->_request_uri, $page_key_extension );
  • PgCache_ContentGrabber.php line 439
    apply_filters( 'w3tc_page_extract_key', $this->_page_key, $page_key_extension['useragent'], $page_key_extension['referrer'], $page_key_extension['encryption'], $page_key_extension['compression'], $page_key_extension['content_type'], $this->_request_url_fragments['host'] . $this->_request_uri, $page_key_extension );
  • Util_PageUrls.php line 1100
    apply_filters( 'w3tc_page_mapping', $map );
  • PgCache_ContentGrabber.php line 3039
    do_action( 'w3tc_pagecache_before_set', array( 'request_url_fragments' => $this->_request_url_fragments, 'page_key_extension' => $this->_page_key_extension, ) );
  • PgCache_Flush.php line 367
    apply_filters( 'w3tc_pagecache_flush_all_groups', $groups_to_flush );
  • PgCache_Flush.php line 450
    apply_filters( 'w3tc_pagecache_flush_url', $w3tc_data );
  • PgCache_Flush.php line 473
    apply_filters( 'w3tc_pagecache_flush_url_keys', $page_keys );
  • PgCache_Environment.php line 1324
    apply_filters( 'w3tc_pagecache_rules_apache_accept_qs', $w3tc_config->get_array( 'pgcache.accept.qs' ) );
  • PgCache_Environment.php line 1350
    apply_filters( 'w3tc_pagecache_rules_apache_accept_qs_rules', $query_rules, $query );
  • PgCache_Environment.php line 1550
    apply_filters( 'w3tc_pagecache_rules_apache_rewrite_cond', $use_cache_rules );
  • PgCache_Environment.php line 1558
    apply_filters( 'w3tc_pagecache_rules_apache_uri_prefix', $uri_prefix );
  • PgCache_Environment.php line 1652
    apply_filters( 'w3tc_pagecache_rules_nginx_accept_qs', $w3tc_config->get_array( 'pgcache.accept.qs' ) );
  • PgCache_Environment.php line 1677
    apply_filters( 'w3tc_pagecache_rules_nginx_accept_qs_rules', $query_rules, $query );
  • PgCache_Environment.php line 1991
    apply_filters( 'w3tc_pagecache_rules_nginx_uri_prefix', $uri_prefix );
  • PgCache_ContentGrabber.php line 3082
    apply_filters( 'w3tc_pagecache_set', $_data, $this->_page_key, $this->_page_group );
  • Cache_File_Generic.php line 260
    apply_filters( 'w3tc_pagecache_set_header', $h, $h, 'file_generic' );
  • Util_PageUrls.php line 899
    apply_filters( 'w3tc_pageurls_wp_json_base', $wp_json_base );
  • CacheGroups_Plugin_Admin.php line 269
    apply_filters( 'w3tc_pgcache_cookiegroups', $cookiegroups );
  • PgCache_Flush.php line 315
    apply_filters( 'w3tc_pgcache_flush_post_queued_urls', $full_urls );
  • CacheFlush_Locally.php line 316
    apply_filters( 'w3tc_preflush_all', true, $extras );
  • CacheFlush_Locally.php line 200
    apply_filters( 'w3tc_preflush_cdn_all', true, $extras );
  • CacheFlush_Locally.php line 333
    apply_filters( 'w3tc_preflush_group', true, $w3tc_group, $extras );
  • CacheFlush_Locally.php line 259
    apply_filters( 'w3tc_preflush_post', true, $extras );
  • CacheFlush_Locally.php line 275
    apply_filters( 'w3tc_preflush_posts', true, $extras );
  • CacheFlush_Locally.php line 350
    apply_filters( 'w3tc_preflush_url', true, $extras );
  • Generic_Plugin.php line 1008
    apply_filters( 'w3tc_process_content', $buffer );
  • Generic_Plugin.php line 999
    apply_filters( 'w3tc_process_wp_die', false, $buffer );
  • Generic_Plugin.php line 1063
    apply_filters( 'w3tc_processed_content', $buffer );
  • inc/options/cdn.php line 500
    do_action( 'w3tc_purge_urls_box' );
  • CacheGroups_Plugin_Admin.php line 215
    apply_filters( 'w3tc_referrer_groups', $referrer_groups );
  • Extension_FragmentCache_Plugin.php line 191
    do_action( 'w3tc_register_fragment_groups' );
  • UserExperience_Remove_CssJs_Extension.php line 90
    apply_filters( 'w3tc_remove_cssjs_can_process', $can_process );
  • UserExperience_Remove_CssJs_Mutator.php line 71
    apply_filters( 'w3tc_remove_cssjs_mutator_before', array( 'buffer' => $buffer, ) );
  • PgCache_ContentGrabber.php line 1632
    apply_filters( 'w3tc_repeating_headers', $repeating_headers );
  • Generic_AdminActions_Default.php line 698
    apply_filters( 'w3tc_save_options', $w3tc_data, $this->_page );
  • Util_Admin.php line 607
    do_action( 'w3tc_saved_options', $new_config );
  • inc/options/cdn.php line 495
    do_action( 'w3tc_settings_box_cdnfsd' );
  • inc/options/cdn.php line 486
    do_action( 'w3tc_settings_cdn_boxarea_configuration' );
  • inc/options/general.php line 831
    do_action( "w3tc_settings_general_boxarea_{$w3tc_area['id']}" );
  • inc/options/general.php line 611
    do_action( 'w3tc_settings_general_boxarea_cdn' );
  • inc/options/general.php line 345
    do_action( 'w3tc_settings_general_boxarea_system_opcache' );
  • Root_AdminMenu.php line 313
    do_action( "w3tc_settings_page-{$this->_page}" );
  • Extension_Swarmify_Plugin.php line 134
    apply_filters( 'w3tc_swarmify_active', null );
  • Util_Environment.php line 2240
    apply_filters( 'w3tc_trusted_proxies', $cidrs );
  • Util_Ui.php line 1832
    apply_filters( "w3tc_ui_config_item_{$action_key}", $w3tc_a );
  • CacheGroups_Plugin_Admin.php line 55
    apply_filters( 'w3tc_ui_config_item_mobile.rgroups', $useragent_groups );
  • CacheGroups_Plugin_Admin.php line 69
    apply_filters( 'w3tc_ui_config_item_pgcache.cookiegroups.groups', $cookie_groups );
  • Util_Ui.php line 1457
    apply_filters( 'w3tc_ui_settings_item', $w3tc_a );
  • Cdn_Core.php line 796
    apply_filters( 'w3tc_uri_cdn_uri', ltrim( $remote_uri, '/' ) );
  • Util_Environment.php line 1054
    apply_filters( 'w3tc_url_to_docroot_filename', $w3tc_data );
  • UsageStatistics_StorageWriter.php line 332
    apply_filters( 'w3tc_usage_statistics_history_set', $history );
  • UsageStatistics_StorageWriter.php line 280
    apply_filters( 'w3tc_usage_statistics_metric_values', $metric_values );
  • UsageStatistics_StorageWriter.php line 268
    apply_filters( 'w3tc_usage_statistics_metrics', $metrics );
  • UsageStatistics_Core.php line 101
    do_action( 'w3tc_usage_statistics_of_request', $this->storage );
  • UsageStatistics_StorageReader.php line 73
    apply_filters( 'w3tc_usage_statistics_summary_from_history', $summary, $history );
  • UserExperience_Page_View.php line 30
    do_action( 'w3tc_userexperience_page' );
  • UsageStatistics_Source_AccessLog.php line 169
    apply_filters( 'w3tc_ustats_access_log_format_regexp', $line_regexp );
  • UsageStatistics_Source_AccessLog.php line 328
    apply_filters( 'w3tc_ustats_access_log_line_elements', $e, $w3tc_line );
  • Varnish_Flush.php line 526
    apply_filters( 'w3tc_varnish_flush_post_queued_urls', $full_urls );
  • Util_Widget.php line 49
    do_action( 'w3tc_widget_setup' );

Generated from W3 Total Cache'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: