WordPress action hook

rt_nginx_helper_purge_url

Fired by 14 WordPress plugins, running on 221K+ sites between them.

“Filters the URL to be purged.”

How to use rt_nginx_helper_purge_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_filter( 'rt_nginx_helper_purge_url', function( $url ) {
	// Change $url here.
	return $url;
}, 10, 1 );

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

14 plugins that fire rt_nginx_helper_purge_url

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

  1. Nginx Helper icon Nginx Helper200,000+ installs apply_filters( 'rt_nginx_helper_purge_url', $url ) admin/class-fastcgi-purger.php:38
  2. Bit Form icon Bit Form10,000+ installs do_action( 'rt_nginx_helper_purge_url', $url ) backend/app/Helpers/CacheCompat.php:337
  3. ReviewX icon ReviewX6,000+ installs do_action( 'rt_nginx_helper_purge_url', $url ) app/Cache/Purger.php:70
  4. BerqWP icon BerqWP4,000+ installs do_action( 'rt_nginx_helper_purge_url', home_url($slug) ) inc/thirdparty/plugin/NginxHelper.php:28
  5. RankReady icon RankReady600+ installs do_action( 'rt_nginx_helper_purge_url', $url ) includes/class-rnrd-cache.php:574
  6. AEO God Mode icon AEO God Mode300+ installs do_action( 'rt_nginx_helper_purge_url', $url ) includes/class-llms.php:212
  7. AcrossAI MCP Manager icon AcrossAI MCP Manager100+ installs do_action( 'rt_nginx_helper_purge_url', $url ) includes/OAuth/DiscoveryCacheInvalidator.php:233
  8. Berq Used CSS icon Berq Used CSS70+ installs do_action( 'rt_nginx_helper_purge_url', $url ) inc/class-bqucss-cache-compat.php:67
  9. Code Unloader icon Code Unloader30+ installs do_action( 'rt_nginx_helper_purge_url', $url ) src/Core/CachePurger.php:91
  10. AljiSitemap icon AljiSitemapFewer than 10 installs do_action( 'rt_nginx_helper_purge_url', $url ) includes/class-aljisitemap-cache.php:137
  11. AuditySEO Canonical Manager icon AuditySEO Canonical ManagerFewer than 10 installs do_action( 'rt_nginx_helper_purge_url', $url ) includes/class-audityseo-canonical-manager-cache-purger.php:48
  12. StyleRaise icon StyleRaiseFewer than 10 installs do_action( 'rt_nginx_helper_purge_url', $url ) includes/cache/class-purger.php:215
  13. AKantio Cache icon AKantio CacheFewer than 10 installs do_action( 'rt_nginx_helper_purge_url', $url ) src/Infrastructure/Integrations/HostCachePurger.php:34
  14. SOHO SEO icon SOHO SEOFewer than 10 installs do_action( 'rt_nginx_helper_purge_url', $url ) includes/class-dso-sitemap-cache.php:137
  15. LMS-Advisor AI Powered Cache icon LMS-Advisor AI Powered CacheFewer than 10 installs do_action( 'rt_nginx_helper_purge_url', $url ) includes/class-lmsa-cache-integrations.php:516

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.