WordPress action hook
swift_performance_clear_all_cache
Fired by 8 WordPress plugins, running on 9,030+ sites between them.
How to use swift_performance_clear_all_cache
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( 'swift_performance_clear_all_cache', function() {
// Your code runs here.
}, 10, 1 );Argument names come from Search Atlas SEO's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
8 plugins that fire swift_performance_clear_all_cache
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Search Atlas SEO6,000+ installs
do_action( 'swift_performance_clear_all_cache' )includes/class-metasync-cache-purge.php:821 -
WP Helper Premium1,000+ installs
do_action( 'swift_performance_clear_all_cache' )functions/whp-base-functions.php:152 -
ATR Cookie Notice1,000+ installs
do_action( 'swift_performance_clear_all_cache' )atr-cookie-notice.php:117 -
Atlant Security900+ installs
do_action( 'swift_performance_clear_all_cache' )includes/modules/PostBreach.php:652 -
AutoTill100+ installs
do_action( 'swift_performance_clear_all_cache' )autothink-shopping-agent.php:179 -
MAKcubes20+ installs
do_action( 'swift_performance_clear_all_cache' )makcubes-cache-nuke.php:254 -
WPHEKA Request For Quote for WooCommerce10+ installs
do_action( 'swift_performance_clear_all_cache' )includes/class-wpheka-rfq-cache.php:240 -
AKZ Checkout Fields Manager for WooCommerceFewer than 10 installs
do_action( 'swift_performance_clear_all_cache' )akz-checkout-fields-manager-for-woocommerce.php:560
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.