Staging Shield 1.0.2 has 10 actions and 23 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 Shield fires an action
add_action( 'sshield_pantalla_avanzado', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Staging Shield is about to use
add_filter( 'sshield_acceso_excepcion', 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
-
/** * Si esta petición a una página debe seguir abierta aunque la copia esté * cerrada. */ apply_filters( 'sshield_acceso_excepcion', false ); -
/** * Si quien hace esta petición puede ver la copia cerrada. La Pro deja pasar a * quien abrió el enlace para compartir. */ apply_filters( 'sshield_acceso_permitido', $puede ); -
/** * La Pro recoge aquà sus campos. */ apply_filters( 'sshield_ajustes_desde_formulario', $cambios, $datos ); -
/** * Las pruebas. La Pro añade las suyas: pagos, tareas, colas, conexiones, * webhooks y plugins apagados. null = no se enseña. */ apply_filters( 'sshield_autoprueba', $pruebas, $protegida ); -
/** * Lo que cuenta la barra. La Pro añade el estado de los pagos. */ apply_filters( 'sshield_aviso_tienda', $partes ); -
/** * Las cifras del resumen: clave => array( valor, texto, enlace ). La Pro * añade las suyas. */ apply_filters( 'sshield_cifras', $cifras ); -
/** * Si hace falta el mu-plugin aunque no se quiera la guardia de correo. */ apply_filters( 'sshield_guardia_necesaria', false ); -
/** * La Pro añade sus mensajes. */ apply_filters( 'sshield_mensajes', $textos ); -
/** * Las páginas que añade la Pro, como la del informe. */ do_action( "sshield_pantalla_{$pestana}" ); -
/** * La Pro añade aquà los comandos de WP-CLI. */ do_action( 'sshield_pantalla_avanzado' ); -
/** * La Pro avisa aquà de que la licencia ha caducado. */ do_action( 'sshield_pantalla_avisos' ); -
/** * La Pro pone aquà el selector de idioma. */ do_action( 'sshield_pantalla_cabecera' ); -
/** * La Pro añade aquà las conexiones cortadas. */ do_action( 'sshield_pantalla_registro' ); -
/** * Si el pie de las páginas del plugin pide una reseña. */ apply_filters( 'sshield_pedir_resena', true ); -
/** * La Pro engancha aquà sus protecciones. */ do_action( 'sshield_proteger' ); -
/** * Adónde lleva un botón de la Pro. */ apply_filters( 'sshield_url_pro', $url, $motivo ); -
apply_filters( 'pre_http_request', false, array( 'method' => 'POST' ), 'https://api.sendgrid.com/v3/mail/send' ); -
apply_filters( 'pre_wp_mail', null, array( 'to' => self::CORREO_PRUEBA, 'subject' => __( 'Staging Shield self-test', 'staging-shield' ), 'message' => __( 'This email was sent by the Staging Shield self-test on a copy of your site. If it reached your test inbox, emails from the copy are going where they should.', 'staging-shield' ), 'headers' => array(), 'attachments' => array(), ) ); -
apply_filters( 'robots_txt', "User-agent: *\n", '1' ); -
do_action( 'sshield_anotado', $tipo, $entrada ); -
apply_filters( 'sshield_antes_de_guardar', $nuevos, $antes ); -
apply_filters( 'sshield_correo_modo', 'bloquear' ); -
do_action( 'sshield_correo_phpmailer', $phpmailer, $modo ); -
apply_filters( 'sshield_correo_pre', null, $atts, $modo ); -
do_action( 'sshield_correo_retenido', $atts, $via ); -
apply_filters( 'sshield_es_pro', false ); -
do_action( 'sshield_fs_loaded' ); -
apply_filters( 'sshield_pagos_protegidos', false ); -
apply_filters( 'sshield_pestanas', $pestanas ); -
apply_filters( 'sshield_protecciones', $lista, $protegida ); -
apply_filters( 'sshield_resultado', $resultado, $contexto ); -
woocommerce_subscriptions_is_duplicate_site
filter Used by 3 plugins → Copy link Customise this hookapply_filters( 'woocommerce_subscriptions_is_duplicate_site', false ); -
apply_filters( 'wp_robots', array( 'index' => true, 'follow' => true ) );
Generated from Staging Shield'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: