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:

functions.php
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.

  1. MainWP Child icon MainWP Child700,000+ installs do_action( 'fastpixel/purge/all' ) class/class-mainwp-child-cache-purge.php:953
  2. Enable Media Replace icon Enable Media Replace600,000+ installs do_action( 'fastpixel/purge/all' ) classes/cache.php:171
  3. WebChange Detector: Visual Regression Testing & Visual Checks After Updates icon WebChange Detector: Visual Regression Testing & Visual Checks After Updates300+ installs do_action( 'fastpixel/purge/all' ) admin/class-webchangedetector-cache-clearer.php:360
  4. Media Switcheroo icon 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.