WordPress action hook

ce_clear_cache

Fired by 23 WordPress plugins, running on 3.1M+ sites between them.

How to use ce_clear_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:

functions.php
add_action( 'ce_clear_cache', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from CookieYes's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

23 plugins that fire ce_clear_cache

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. CookieYes icon CookieYes1+ million installs do_action( 'ce_clear_cache' ) lite/admin/modules/cache/services/class-cache-enabler.php:48
  2. Duplicator icon Duplicator1+ million installs do_action( 'ce_clear_cache' ) src/Utils/CachesPurge/CachesPurge.php:211
  3. WP-Optimize icon WP-Optimize1+ million installs do_action( 'ce_clear_cache' ) minify/class-wp-optimize-minify-cache-functions.php:202
  4. Fast Velocity Minify icon Fast Velocity Minify30,000+ installs do_action( 'ce_clear_cache' ) inc/common.php:218
  5. ShopBuilder icon ShopBuilder10,000+ installs do_action( 'ce_clear_cache' ) app/Helpers/Cache.php:453
  6. bbp style pack icon bbp style pack6,000+ installs do_action( 'ce_clear_cache' ) includes/functions.php:3652
  7. RevivePress icon RevivePress4,000+ installs do_action( 'ce_clear_cache' ) includes/Core/SiteCache.php:82
  8. Vigilant icon Vigilant4,000+ installs do_action( 'ce_clear_cache' ) includes/class-under-attack.php:914
  9. FAZ Cookie Manager icon FAZ Cookie Manager3,000+ installs do_action( 'ce_clear_cache' ) admin/modules/cache/services/class-cache-enabler.php:61
  10. Ryviu icon Ryviu1,000+ installs do_action( 'ce_clear_cache' ) includes/common-functions.php:33
  11. The Cache Purger icon The Cache Purger1,000+ installs do_action( 'ce_clear_cache' ) work/inc/modules/plugin.php:776
  12. WiserReview Product Reviews for WooCommerce icon WiserReview Product Reviews for WooCommerce800+ installs do_action( 'ce_clear_cache' ) wiser-review.php:3677
  13. Revive.so icon Revive.so600+ installs do_action( 'ce_clear_cache' ) includes/core/class-revive-site-cache.php:74
  14. Email Marketing for WordPress and WooCommerce icon Email Marketing for WordPress and WooCommerce600+ installs do_action( 'ce_clear_cache' ) App/Helpers/PurgeCache.php:69
  15. Shamor icon Shamor400+ installs do_action( 'ce_clear_cache' ) wp-shamor.php:521
  16. Cache Cleaner X-Ray icon Cache Cleaner X-Ray300+ installs do_action( 'ce_clear_cache' ) includes/providers/class-lcc-provider-cache-enabler.php:10
  17. Product Reviews & Photo Reviews for WooCommerce icon Product Reviews & Photo Reviews for WooCommerce100+ installs do_action( 'ce_clear_cache' ) App/Helpers/PurgeCache.php:69
  18. Yes-co ORES icon Yes-co ORES10+ installs do_action( 'ce_clear_cache' ) includes/classes/yog_synchronization_manager.php:553
  19. Nymbl Cookie Sentinel icon Nymbl Cookie Sentinel10+ installs do_action( 'ce_clear_cache' ) includes/class-cache.php:110
  20. DOT icon DOT10+ installs do_action( 'ce_clear_cache' ) includes/class-dot-press-admin-data.php:268
  21. Speed Pilot: Speed Up Your Website Performance icon Speed Pilot: Speed Up Your Website PerformanceFewer than 10 installs do_action( 'ce_clear_cache' ) includes/Cache/CacheClearService.php:583
  22. relaybell icon relaybellFewer than 10 installs do_action( 'ce_clear_cache' ) relaybell.php:238
  23. FastLayer icon FastLayerFewer than 10 installs do_action( 'ce_clear_cache' ) includes/class-page-cache.php:1521

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.