WordPress action hook
fastpixel/purge/all
Fired by 4 WordPress plugins, running on 1.3M+ sites between them.
How to use fastpixel/purge/all
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'fastpixel/purge/all', function() {
// Your code runs here.
}, 10, 1 );Argument names come from MainWP Child's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
4 plugins that fire fastpixel/purge/all
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
MainWP Child700,000+ installs
do_action( 'fastpixel/purge/all' )class/class-mainwp-child-cache-purge.php:953 -
Enable Media Replace600,000+ installs
do_action( 'fastpixel/purge/all' )classes/cache.php:171 -
WebChange Detector: Visual Regression Testing & Visual Checks After Updates300+ installs
do_action( 'fastpixel/purge/all' )admin/class-webchangedetector-cache-clearer.php:360 -
Media SwitcherooFewer than 10 installs
do_action( 'fastpixel/purge/all' )includes/class-cache-manager.php:102
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.