Guard Dog 1.9.62 has 9 actions and 26 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 Guard Dog fires an action
add_action( 'guard_dog_activity_logged', function( $log ) {
// Your code runs here.
}, 10, 1 );
// Change a value Guard Dog is about to use
add_filter( 'guard_dog_activity_log_annotations', 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
-
/** * Fires after an activity-log row is written. */ do_action( 'guard_dog_activity_logged', $log ); -
/** * Filter read-only platform annotations for the activity-log view. */ apply_filters( 'guard_dog_activity_log_annotations', [] ); -
/** * Filter the Activity Log event type registry. */ apply_filters( 'guard_dog_activity_log_event_types', self::$event_types ); -
/** * Filter the Guard Dog Cloud signup URL (for example, to use the beta auth * hostname). */ apply_filters( 'guard_dog_cloud_signup_url', 'https://app.guarddog.cc/v1/auth/start?returnTo=%2Fconsole%2F' ); -
/** * Filter the IP reputation login decision. */ apply_filters( 'guard_dog_ip_reputation_verdict', $decision, $ip, $result ); -
/** * Filter whether the current user creation context is admin-created. */ apply_filters( 'guard_dog_is_admin_created_user', $is_admin_created ); -
/** * Additive platform tie-in point: a connected Guard Dog Cloud may * pre-emptively raise friction for a network-flagged IP, independently of (and * without weakening) the local attempt counter. The default — including when * disconnected — is 'none', so local lockout logic below is untouched. This * feature acts only on 'deny'. */ apply_filters( 'guard_dog_lla_pre_auth_friction', 'none', $ip ); -
/** * Filter the login screen's complete generated stylesheet. */ apply_filters( 'guard_dog_login_css', $css, $settings ); -
/** * Filter the login screen's design tokens before they are emitted. */ apply_filters( 'guard_dog_login_tokens', $tokens, $settings ); -
/** * Let membership integrations deny email login (WP_Error). This filter cannot * replace the proven account or override an earlier Guard Dog denial. */ apply_filters( 'guard_dog_magic_login_user_allowed', $user, $user ); -
/** * Filter the password-age baseline for a user with no password history. */ apply_filters( 'guard_dog_password_baseline_date', $baseline, $user_id ); -
/** * Additive platform tie-in point: a connected Guard Dog Cloud may reject an * otherwise-valid password — e.g. one found in a synced breached-password * set, tested locally so the password never leaves the site. Return a * non-empty reason string to reject; '' (the default, including when * disconnected) keeps the password valid. This only ever ADDS a rejection to a * password that already passed local po... */ apply_filters( 'guard_dog_password_rejected', '', $password ); -
/** * Filter whether a social login may skip Guard Dog two-factor authentication. */ apply_filters( 'guard_dog_social_bypass_two_factor', $bypass, $user, $provider_id ); -
/** * Filters the Facebook Graph API version, e.g. "v26.0". */ apply_filters( 'guard_dog_social_facebook_graph_api_version', self::GRAPH_API_VERSION ); -
/** * Filter the capabilities that stop a role from being given to social * sign-ups. */ apply_filters( 'guard_dog_social_privileged_capabilities', $capabilities ); -
/** * Filter the social login providers. */ apply_filters( 'guard_dog_social_providers', $built_in ); -
do_action( 'wp_login', $user->user_login, $user ); -
do_action( 'guard_dog_before_email_template', $template_name, $args ); -
do_action( "guard_dog_customizer_exported_{$this->get_customizer_id()}", $file_path, $settings ); -
apply_filters( "guard_dog_customizer_preview_{$this->get_customizer_id()}", $html, $sanitized ); -
apply_filters( 'guard_dog_available_customizers', $customizers ); -
apply_filters( 'guard_dog_cloudflare_ip_ranges', array( '173.245.48.0/20', '103.21.244.0/22', '103.22.200.0/22', '103.31.4.0/22', '141.101.64.0/18', '108.162.192.0/18', '190.93.240.0/20', '188.114.96.0/20', '197.234.240.0/22', '198.41.128.0/17', '162.158.0.0/15', '104.16.0.0/13', '104.24.0.0/14', '172.64.0.0/13', '131.0.72.0/22', '2400:cb00::/32', '2606:4700::/32', '2803:f800::/32', '2405:b500::/32', '2405:8100::/32', '2a06:98c0::/29', '2c0f:... ); -
apply_filters( 'guard_dog_customizer_control_types', $this->control_types ); -
do_action( 'guard_dog_customizer_load_controls', $controls_path ); -
do_action( 'guard_dog_customizer_load_implementations', $implementations_path ); -
do_action( "guard_dog_customizer_reset_{$this->get_customizer_id()}" ); -
do_action( "guard_dog_customizer_saved_{$this->get_customizer_id()}", $settings ); -
apply_filters( "guard_dog_customizer_settings_{$this->get_customizer_id()}", $sanitized, $settings ); -
apply_filters( 'guard_dog_email_2fa_template_args', $template_args, $user_id ); -
apply_filters( 'guard_dog_email_template_content', $content, $template_name, $args, $template_source ); -
apply_filters( 'guard_dog_email_template_path', $template_path, $template_name, $args ); -
do_action( 'guard_dog_enqueue_public_login_2fa_assets', $this ); -
apply_filters( 'guard_dog_lla_stale_attempt_retention_days', self::STALE_ATTEMPT_RETENTION_DAYS ); -
apply_filters( 'guard_dog_login_2fa_status', $status, $user ); -
apply_filters( 'wp_mail_content_type', $parsed_headers['content_type'] );
Generated from Guard Dog'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: