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:
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.
-
Cloudflare200,000+ installs
apply_filters( 'cloudflare_purge_by_url', $this->getPostRelatedLinks($postId), $postId )src/WordPress/Hooks.php:172 -
ReviewX6,000+ installs
do_action( 'cloudflare_purge_by_url', [$url] )app/Cache/Purger.php:66 -
Sign-up Sheets1,000+ installs
do_action( 'cloudflare_purge_by_url', $urls )controller/cache.php:192 -
RankReady600+ installs
do_action( 'cloudflare_purge_by_url', [ $url ] )includes/class-rnrd-cache.php:546 -
PixelVault200+ installs
do_action( 'cloudflare_purge_by_url', array( get_the_guid( $attachment_id ) ) )includes/class-rayetun-medianest-media-replace.php:216 -
ContentGecko Connector60+ installs
do_action( 'cloudflare_purge_by_url', $permalink )includes/services/class-cg-post-service.php:962 -
Ranki Publisher20+ installs
do_action( 'cloudflare_purge_by_url', array( $post_url ) )ranki-publisher.php:1487 -
TSO Link Inspector10+ installs
do_action( 'cloudflare_purge_by_url', get_permalink( $post_id ) )includes/class-tso-lc-scanner.php:7573 -
SpeedForgeFewer than 10 installs
do_action( 'cloudflare_purge_by_url', home_url( '/*' ) )includes/integrations/plugins/class-speedforge-cloudflare.php:206 -
WingPilotFewer than 10 installs
do_action( 'cloudflare_purge_by_url', array( home_url( '/' ) ) )includes/class-cache-purger.php:385 -
CRAI Content UpdaterFewer than 10 installs
do_action( 'cloudflare_purge_by_url', get_permalink( $original_id ) )includes/class-crai-updater.php:1382 -
WeDispatch Audio Text to SpeechFewer than 10 installs
do_action( 'cloudflare_purge_by_url', get_post($post_id), $url )inc/cache.php:113 -
annuncifunebri per l’impresaFewer than 10 installs
do_action( 'cloudflare_purge_by_url', $urls )src/Cache/class-cacheplugincompat.php:102 -
ChecknautFewer than 10 installs
do_action( 'cloudflare_purge_by_url', get_post( $post_id ), [ get_permalink( $post_id ) ] )includes/class-dvc-divi.php:2625 -
AKantio CacheFewer than 10 installs
do_action( 'cloudflare_purge_by_url', $post_id )src/Infrastructure/Integrations/HostCachePurger.php:38 -
klevAI ConectorFewer than 10 installs
do_action( 'cloudflare_purge_by_url', get_permalink( $post_id ) )includes/88-cache.php:185 -
SirSyncFewer than 10 installs
do_action( 'cloudflare_purge_by_url', $url )includes/adapters/class-elementor.php:1697 -
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.