Nginx Helper icon
Performance & Caching

Nginx Helper hooks reference

  • By rtCamp
  • v2.4.1
  • Updated

Nginx Helper 2.4.1 has 6 actions and 13 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Nginx Helper fires an action
add_action( 'rt_nginx_helper_after_redis_purge_all', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Nginx Helper is about to use
add_filter( 'rt_nginx_helper_purge_url', function( $url ) {
	// Change $url here.
	return $url;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • admin/class-fastcgi-purger.php line 38 · used in 3 places
    /**
     * Filters the URL to be purged.
     */
    apply_filters( 'rt_nginx_helper_purge_url', $url );
  • admin/class-fastcgi-purger.php line 141 · used in 3 places
    /**
     * Allow plugins/themes to modify/extend urls.
     */
    apply_filters( 'rt_nginx_helper_purge_urls', $purge_urls, false );
  • admin/class-phpredis-purger.php line 114 · used in 2 places
    /**
     * Fire an action after the Redis cache has been purged.
     */
    do_action( 'rt_nginx_helper_after_redis_purge_all' );
  • admin/class-fastcgi-purger.php line 251
    /**
     * Fire an action after the FastCGI cache has been purged.
     */
    do_action( 'rt_nginx_helper_after_fastcgi_purge_all' );
  • admin/class-nginx-helper-admin.php line 821
    /**
     * Fire an action after the entire cache has been purged whatever caching type
     * is used.
     */
    do_action( 'rt_nginx_helper_after_purge_all' );
  • admin/class-purger.php line 555
    /**
     * Fire an action after remote purge request.
     */
    do_action( 'rt_nginx_helper_after_remote_purge_url', $url, $response );
  • admin/class-purger.php line 520
    /**
     * Fire an action before purging URL.
     */
    do_action( 'rt_nginx_helper_before_remote_purge_url', $url );
  • admin/class-fastcgi-purger.php line 272
    /**
     * Filter to change purge suffix for FastCGI cache.
     */
    apply_filters( 'rt_nginx_helper_fastcgi_purge_suffix', 'purge' );
  • admin/class-fastcgi-purger.php line 286
    /**
     * Filter to change purge URL base for FastCGI cache.
     */
    apply_filters( 'rt_nginx_helper_fastcgi_purge_url_base', $purge_url_base );
  • admin/class-purger.php line 469
    /**
     * Filters the cached file name.
     */
    apply_filters( 'rt_nginx_helper_purge_cached_file', $cached_file, $url );
  • admin/class-purger.php line 491
    /**
     * Fire an action after deleting file from cache.
     */
    do_action( 'rt_nginx_helper_purged_file', $url, $cached_file );
  • admin/class-purger.php line 511
    /**
     * Filters the URL to be purged.
     */
    apply_filters( 'rt_nginx_helper_remote_purge_url', $url );
  • admin/class-nginx-helper-admin.php line 93
    /**
     * Define settings tabs
     */
    apply_filters( 'rt_nginx_helper_settings_tabs', array( 'general' => array( 'menu_title' => __( 'General', 'nginx-helper' ), 'menu_slug' => 'general', ), 'support' => array( 'menu_title' => __( 'Support', 'nginx-helper' ), 'menu_slug' => 'support', ), ) );
  • admin/class-nginx-helper-admin.php line 656 · used in 2 places
    apply_filters( 'rt_nginx_helper_exclude_post_types', array( 'nav_menu_item' ) );
  • admin/class-nginx-helper-admin.php line 428
    apply_filters( 'nginx_asset_path', $log_path );
  • admin/class-nginx-helper-admin.php line 442
    apply_filters( 'nginx_asset_url', $log_url );
  • admin/class-purger.php line 142
    apply_filters( 'rt_nginx_helper_comment_change_exclude_post_types', array() );
  • includes/class-nginx-helper.php line 88
    apply_filters( 'rt_wp_nginx_helper_cache_path', '/var/run/nginx-cache' );
  • includes/class-nginx-helper.php line 97
    apply_filters( 'rt_wp_nginx_helper_enable_auto_purge_on_any_update', false );

Generated from Nginx Helper's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: