Staging Superpowers 1.3.1 has 8 actions and 14 filters, read directly from its source code on Nov 19, 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 Staging Superpowers fires an action
add_action( 'sspw_requests_after_table', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Staging Superpowers is about to use
add_filter( 'sspw_blocked_bots', function( $value ) {
// Change $value here.
return $value;
}, 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
-
/** * Output after the requests table (or its empty state). */ do_action( 'sspw_requests_after_table' ); -
/** * Crawlers refused on staging, matched anywhere in the user agent, ignoring * case. */ apply_filters( 'sspw_blocked_bots', array( 'GPTBot', 'ChatGPT-User', 'OAI-SearchBot', 'ClaudeBot', 'Claude-User', 'Claude-SearchBot', 'anthropic-ai', 'CCBot', 'PerplexityBot', 'Perplexity-User', 'Bytespider', 'Amazonbot', 'Applebot', 'meta-externalagent', 'cohere-ai', 'Diffbot', 'Googlebot', 'bingbot', 'DuckDuckBot', 'YandexBot', 'Baiduspider' ) ); -
/** * Whether the current visitor sees this staging copy instead of the visitor * protection. */ apply_filters( 'sspw_can_see_store', $staff ); -
/** * Fires once the core is loaded, so add-ons can build on it. */ do_action( 'sspw_loaded', sspw_is_armed() ); -
/** * Also record requests that were not blocked. */ apply_filters( 'sspw_log_allowed_requests', false ); -
/** * Whether this site should count as staging, so the plugin turns itself on. */ apply_filters( 'sspw_looks_like_staging', $looks, $host ); -
/** * Output for a sub-page added through sspw_settings_sections. */ do_action( "sspw_output_section_{$section}" ); -
/** * Release details shown for a plugin in Troubleshooting, for plugins that are * not on WordPress.org or that need better details. */ apply_filters( 'sspw_plugin_release_info', $info, $file ); -
/** * Buttons or links for one row of the requests table. */ apply_filters( 'sspw_requests_row_actions', array(), $row, $key ); -
/** * Fields on the Protection page, in order. Add-ons can add or move fields; the * page saves every field listed here. */ apply_filters( 'sspw_settings_fields', array_merge( $fields, array( array( 'title' => __( 'WP-Cron', 'staging-superpowers' ), 'desc' => __( 'Freeze WP-Cron tasks', 'staging-superpowers' ), 'desc_tip' => __( 'WordPress and many plugins run background jobs with the WordPress scheduler (WP-Cron): digests and follow-up emails, syncs with other apps, backups to the cloud, imports and clean-ups. The staging copy would run them a second ti... ); -
/** * Sub-pages of the settings page. */ apply_filters( 'sspw_settings_sections', array( '' => __( 'Protection', 'staging-superpowers' ), 'troubleshooting' => __( 'Troubleshooting', 'staging-superpowers' ), 'emails' => __( 'Emails', 'staging-superpowers' ), 'requests' => __( 'Requests', 'staging-superpowers' ), 'changelog' => __( 'Changelog', 'staging-superpowers' ), ) ); -
/** * Name of the settings page, in the Settings menu and as its heading. */ apply_filters( 'sspw_tab_label', __( 'Staging Superpowers', 'staging-superpowers' ) ); -
/** * The simulated payment result for this order: paid, on-hold or failed. */ apply_filters( 'sspw_test_gateway_outcome', $this->get_option( 'outcome', 'paid' ), $order ); -
/** * Request paths logged-out visitors can still see, such as a custom login or * register page. Sub-paths are included: "/account" also allows * "/account/lost-password". */ apply_filters( 'sspw_visitor_allowed_paths', $paths ); -
/** * Visitor choices, value => label. */ apply_filters( 'sspw_visitor_modes', array( 'lock' => __( 'Only logged-in users can see the site (recommended)', 'staging-superpowers' ), 'open' => __( 'Let everyone see the site', 'staging-superpowers' ), ) ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
apply_filters( 'https_local_ssl_verify', false ); -
do_action( 'litespeed_control_set_nocache', 'Staging Superpowers' ); -
do_action( 'litespeed_purge_all' ); -
apply_filters( 'woocommerce_settings_tabs_array', array() ); -
do_action( 'wphb_clear_page_cache' );
Generated from Staging Superpowers'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: