Ultra Web Hosting Performance Toolkit 5.3.4 has 4 actions and 35 filters, read directly from its source code on Nov 18, 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 Ultra Web Hosting Performance Toolkit fires an action
add_action( 'ultra_after_cache_purge', function( $cleared, $failed ) {
// Your code runs here.
}, 10, 2 );
// Change a value Ultra Web Hosting Performance Toolkit is about to use
add_filter( 'ultra_heartbeat_frontend_interval', function( $ultraperf_get ) {
// Change $ultraperf_get here.
return $ultraperf_get;
}, 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
-
/** * Filter the heartbeat interval on the front end. 0 disables it. */ apply_filters( 'ultra_heartbeat_frontend_interval', ultraperf_get( 'heartbeat_frontend', '' ) ); -
/** * Fires after every built-in cache layer has been purged. */ do_action( 'ultra_after_cache_purge', $cleared, $failed ); -
/** * Filter where a blocked registration request is sent. */ apply_filters( 'ultra_blocked_registration_redirect', home_url( '/' ) ); -
/** * Filter the cleanup batch size. */ apply_filters( 'ultra_cleanup_batch_size', 500 ); -
/** * Filter how long a cleanup request keeps working, in seconds. */ apply_filters( 'ultra_cleanup_time_budget', 10 ); -
/** * Filter the suggested scheduled task commands. */ apply_filters( 'ultra_cron_commands', $commands ); -
/** * Filter the default theme for users who have not chosen one. */ apply_filters( 'ultra_default_theme', 'light' ); -
/** * Filter the revision count considered worth flagging. */ apply_filters( 'ultra_health_revision_threshold', 1000 ); -
/** * Filter the heartbeat interval elsewhere in the dashboard. */ apply_filters( 'ultra_heartbeat_admin_interval', ultraperf_get( 'heartbeat_admin', '' ) ); -
/** * Filter the heartbeat interval elsewhere in the dashboard. */ apply_filters( 'ultra_heartbeat_editor_interval', ultraperf_get( 'heartbeat_editor', '' ) ); -
/** * Filter the detected host profile. */ apply_filters( 'ultra_host_profile', $profile ); -
/** * Filter the minimum gap between lockout alert emails. */ apply_filters( 'ultra_lockout_email_cooldown', HOUR_IN_SECONDS ); -
/** * Fires when an IP is locked out of the login form. */ do_action( 'ultra_login_lockout', $ip, $username, $attempts ); -
/** * Filter the address used to reach this site's origin directly. */ apply_filters( 'ultra_origin_address', $address ); -
/** * Filter the candidate PHP command line binaries, in priority order. */ apply_filters( 'ultra_php_cli_candidates', $candidates ); -
/** * Filter the HTTP method used to purge the proxy cache. */ apply_filters( 'ultra_proxy_purge_method', 'PURGE' ); -
/** * Filter the URL the purge request is sent to. */ apply_filters( 'ultra_proxy_purge_url', $scheme . '://' . $origin . '/', $host ); -
/** * Filter whether to fall back to a full opcache_reset() when the per-file * script list is not readable. Default true. */ apply_filters( 'ultra_purge_opcache_reset', true ); -
/** * Filter how long a trigger file is kept before being considered stale. */ apply_filters( 'ultra_purge_signal_max_age', HOUR_IN_SECONDS ); -
/** * Filter the request path hops. */ apply_filters( 'ultra_request_path', $hops ); -
/** * Last chance for an external verifier to reject a reset request. */ apply_filters( 'ultra_reset_allow', true, $login, $ip ); -
/** * Fires when a password reset request is blocked. */ do_action( 'ultra_reset_blocked', $ip, $login, $reason ); -
/** * The Turnstile server-side verification endpoint. Filterable for testing. */ apply_filters( 'ultra_reset_captcha_verify_url', 'https://challenges.cloudflare.com/turnstile/v0/siteverify' ); -
/** * Whether a missing or unverifiable render token blocks the request. */ apply_filters( 'ultra_reset_require_token', true ); -
/** * Whether a missing or unverifiable timestamp token should hold a comment. */ apply_filters( 'ultra_spam_require_token', true ); -
/** * Filter whether to warm the origin before purging the CDN. */ apply_filters( 'ultra_warm_origin_before_cdn_purge', true ); -
apply_filters( 'ultra_trusted_proxies', ultraperf_cloudflare_ranges(), 'cloudflare' ); -
do_action( 'litespeed_purge_all' ); -
apply_filters( 'ultra_login_lockout_duration', 15 * MINUTE_IN_SECONDS ); -
apply_filters( 'ultra_login_max_attempts', 5 ); -
apply_filters( 'ultra_login_tracking_window', 30 * MINUTE_IN_SECONDS ); -
apply_filters( 'ultra_reset_max_per_account', 3 ); -
apply_filters( 'ultra_reset_max_per_ip', 5 ); -
apply_filters( 'ultra_reset_min_time', 2 ); -
apply_filters( 'ultra_reset_pow_difficulty', 4 ); -
apply_filters( 'ultra_reset_window', HOUR_IN_SECONDS ); -
apply_filters( 'ultra_spam_close_after_days', 90 ); -
apply_filters( 'ultra_spam_max_links', 2 ); -
apply_filters( 'ultra_spam_min_time', 3 );
Generated from Ultra Web Hosting Performance Toolkit's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: