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.
// 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
-
rt_nginx_helper_purge_url
filter/** * Filters the URL to be purged. */ apply_filters( 'rt_nginx_helper_purge_url', $url ); -
rt_nginx_helper_purge_urls
filter/** * Allow plugins/themes to modify/extend urls. */ apply_filters( 'rt_nginx_helper_purge_urls', $purge_urls, false ); -
/** * Fire an action after the Redis cache has been purged. */ do_action( 'rt_nginx_helper_after_redis_purge_all' ); -
/** * Fire an action after the FastCGI cache has been purged. */ do_action( 'rt_nginx_helper_after_fastcgi_purge_all' ); -
/** * Fire an action after the entire cache has been purged whatever caching type * is used. */ do_action( 'rt_nginx_helper_after_purge_all' ); -
/** * Fire an action after remote purge request. */ do_action( 'rt_nginx_helper_after_remote_purge_url', $url, $response ); -
/** * Fire an action before purging URL. */ do_action( 'rt_nginx_helper_before_remote_purge_url', $url ); -
/** * Filter to change purge suffix for FastCGI cache. */ apply_filters( 'rt_nginx_helper_fastcgi_purge_suffix', 'purge' ); -
/** * Filter to change purge URL base for FastCGI cache. */ apply_filters( 'rt_nginx_helper_fastcgi_purge_url_base', $purge_url_base ); -
/** * Filters the cached file name. */ apply_filters( 'rt_nginx_helper_purge_cached_file', $cached_file, $url ); -
rt_nginx_helper_purged_file
action/** * Fire an action after deleting file from cache. */ do_action( 'rt_nginx_helper_purged_file', $url, $cached_file ); -
/** * Filters the URL to be purged. */ apply_filters( 'rt_nginx_helper_remote_purge_url', $url ); -
/** * 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', ), ) ); -
apply_filters( 'rt_nginx_helper_exclude_post_types', array( 'nav_menu_item' ) ); -
nginx_asset_path
filterapply_filters( 'nginx_asset_path', $log_path ); -
nginx_asset_url
filterapply_filters( 'nginx_asset_url', $log_url ); -
apply_filters( 'rt_nginx_helper_comment_change_exclude_post_types', array() ); -
apply_filters( 'rt_wp_nginx_helper_cache_path', '/var/run/nginx-cache' ); -
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: