WordPress action hook

cloudflare_purge_by_url

Defined by Cloudflare and fired by 17 plugins in total, running on 208K+ sites between them.

How to use cloudflare_purge_by_url

It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

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

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

17 plugins that fire cloudflare_purge_by_url

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

  1. Cloudflare icon Cloudflare200,000+ installs apply_filters( 'cloudflare_purge_by_url', $this->getPostRelatedLinks($postId), $postId ) src/WordPress/Hooks.php:172
  2. ReviewX icon ReviewX6,000+ installs do_action( 'cloudflare_purge_by_url', [$url] ) app/Cache/Purger.php:66
  3. Sign-up Sheets icon Sign-up Sheets1,000+ installs do_action( 'cloudflare_purge_by_url', $urls ) controller/cache.php:192
  4. RankReady icon RankReady600+ installs do_action( 'cloudflare_purge_by_url', [ $url ] ) includes/class-rnrd-cache.php:546
  5. PixelVault icon PixelVault200+ installs do_action( 'cloudflare_purge_by_url', array( get_the_guid( $attachment_id ) ) ) includes/class-rayetun-medianest-media-replace.php:216
  6. ContentGecko Connector icon ContentGecko Connector60+ installs do_action( 'cloudflare_purge_by_url', $permalink ) includes/services/class-cg-post-service.php:962
  7. Ranki Publisher icon Ranki Publisher20+ installs do_action( 'cloudflare_purge_by_url', array( $post_url ) ) ranki-publisher.php:1487
  8. TSO Link Inspector icon TSO Link Inspector10+ installs do_action( 'cloudflare_purge_by_url', get_permalink( $post_id ) ) includes/class-tso-lc-scanner.php:7573
  9. SpeedForge icon SpeedForgeFewer than 10 installs do_action( 'cloudflare_purge_by_url', home_url( '/*' ) ) includes/integrations/plugins/class-speedforge-cloudflare.php:206
  10. WingPilot icon WingPilotFewer than 10 installs do_action( 'cloudflare_purge_by_url', array( home_url( '/' ) ) ) includes/class-cache-purger.php:385
  11. CRAI Content Updater icon CRAI Content UpdaterFewer than 10 installs do_action( 'cloudflare_purge_by_url', get_permalink( $original_id ) ) includes/class-crai-updater.php:1382
  12. WeDispatch Audio Text to Speech icon WeDispatch Audio Text to SpeechFewer than 10 installs do_action( 'cloudflare_purge_by_url', get_post($post_id), $url ) inc/cache.php:113
  13. annuncifunebri per l’impresa icon annuncifunebri per l’impresaFewer than 10 installs do_action( 'cloudflare_purge_by_url', $urls ) src/Cache/class-cacheplugincompat.php:102
  14. Checknaut icon ChecknautFewer than 10 installs do_action( 'cloudflare_purge_by_url', get_post( $post_id ), [ get_permalink( $post_id ) ] ) includes/class-dvc-divi.php:2625
  15. AKantio Cache icon AKantio CacheFewer than 10 installs do_action( 'cloudflare_purge_by_url', $post_id ) src/Infrastructure/Integrations/HostCachePurger.php:38
  16. klevAI Conector icon klevAI ConectorFewer than 10 installs do_action( 'cloudflare_purge_by_url', get_permalink( $post_id ) ) includes/88-cache.php:185
  17. SirSync icon SirSyncFewer than 10 installs do_action( 'cloudflare_purge_by_url', $url ) includes/adapters/class-elementor.php:1697
  18. aeoora icon aeooraFewer than 10 installs do_action( 'cloudflare_purge_by_url', array( $url ) ) includes/class-aeoora-compat.php:113

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.