WordPress action hook

breeze_clear_varnish

Defined by Breeze Cache and fired by 9 plugins in total, running on 432K+ sites between them.

How to use breeze_clear_varnish

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( 'breeze_clear_varnish', function() {
	// Your code runs here.
}, 10, 1 );

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

9 plugins that fire breeze_clear_varnish

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

  1. Breeze Cache icon Breeze Cache300,000+ installs do_action( 'breeze_clear_varnish' ) inc/breeze-admin.php:1165
  2. WP Umbrella: Security Backup Restore & Monitoring icon WP Umbrella: Security Backup Restore & Monitoring90,000+ installs do_action( 'breeze_clear_varnish' ) src/Thirds/Cache/Breeze.php:17
  3. Modular DS: Monitor, update, and backup multiple websites icon Modular DS: Monitor, update, and backup multiple websites40,000+ installs do_action( 'breeze_clear_varnish' ) src/app/Cache/Compatibilities/Breeze.php:18
  4. Premium Blocks icon Premium Blocks2,000+ installs do_action( 'breeze_clear_varnish' ) admin/includes/pb-panel/class-pb-panel.php:363
  5. GDPR Cache Scripts & Styles icon GDPR Cache Scripts & Styles100+ installs do_action( 'breeze_clear_varnish' ) includes/admin/actions.php:236
  6. PromoTimer icon PromoTimer10+ installs do_action( 'breeze_clear_varnish' ) 1.0.4/1.0.2/includes/class-cleaner.php:138
  7. Scheduled Content Block icon Scheduled Content Block10+ installs do_action( 'breeze_clear_varnish' ) scheduled-content-block.php:527
  8. Content Relay icon Content RelayFewer than 10 installs do_action( 'breeze_clear_varnish' ) includes/apply/class-page-cache.php:116
  9. Celero Adaptive Speed icon Celero Adaptive SpeedFewer than 10 installs do_action( 'breeze_clear_varnish' ) includes/class-ctps-hosting.php:88

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.