WordPress action hook
w3tc_flush_all
Fired by 18 WordPress plugins, running on 823K+ sites between them.
“Some versions listen for this action.”
How to use w3tc_flush_all
It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'w3tc_flush_all', function( $extras ) {
// Your code runs here.
}, 10, 1 );Argument names come from W3 Total Cache's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
18 plugins that fire w3tc_flush_all
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
W3 Total Cache800,000+ installs
do_action( 'w3tc_flush_all', $extras )CacheFlush_Locally.php:318 -
My Private Site10,000+ installs
do_action( 'w3tc_flush_all' )util/utilities.php:309 -
Optima Express IDX10,000+ installs
do_action( 'w3tc_flush_all' )iHomefinderInstaller.php:250 -
WP Helper Premium1,000+ installs
do_action( 'w3tc_flush_all' )functions/whp-base-functions.php:149 -
Hitsteps Web Analytics700+ installs
do_action( 'w3tc_flush_all' )hitsteps.php:330 -
RankReady600+ installs
do_action( 'w3tc_flush_all' )includes/class-rnrd-cache.php:662 -
Persian Admnin Fonts500+ installs
do_action( 'w3tc_flush_all' )admin/class-admin.php:714 -
Reactflow Visitor Recording and Heatmaps200+ installs
do_action( 'w3tc_flush_all' )reactflow.php:79 -
CSS Optimizer100+ installs
do_action( 'w3tc_flush_all' )css_optimizer.php:75 -
AICOM70+ installs
do_action( 'w3tc_flush_all' )includes/class-cache-buster.php:73 -
WP Blast20+ installs
do_action( 'w3tc_flush_all' )inc/third-party/w3-total-cache/w3-total-cache-functions.php:30 -
CapturaFewer than 10 installs
do_action( 'w3tc_flush_all' )src/API/AjaxHandlers.php:187 -
DevSniperFewer than 10 installs
do_action( 'w3tc_flush_all' )includes/helpers.php:107 -
AljiSitemapFewer than 10 installs
do_action( 'w3tc_flush_all' )includes/class-aljisitemap-cache.php:142 -
AI Semantic HandshakeFewer than 10 installs
do_action( 'w3tc_flush_all' )includes/class-aish-rest.php:1685 -
Libre BiteFewer than 10 installs
do_action( 'w3tc_flush_all' )templates/admin/settings-save.php:586 -
Citeon AI ConnectFewer than 10 installs
do_action( 'w3tc_flush_all' )citeon-connect.php:81 -
SOHO SEOFewer than 10 installs
do_action( 'w3tc_flush_all' )includes/class-dso-sitemap-cache.php:142
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.