AuthDock 2.2.4 has 23 actions and 89 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 AuthDock fires an action
add_action( 'authdock_after_2fa_success', function( $user ) {
// Your code runs here.
}, 10, 1 );
// Change a value AuthDock is about to use
add_filter( 'authdock_event_catalogue', function( $cache ) {
// Change $cache here.
return $cache;
}, 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
-
/** * This filter is documented at the end of this method. */ apply_filters( 'authdock_event_catalogue', $cache[ $locale ] ); -
/** * This action is documented in includes/class-authdock-two-factor.php */ do_action( 'authdock_after_2fa_success', $user ); -
/** * Fires immediately before the challenge screen is rendered. */ do_action( 'authdock_before_2fa_challenge', $user, $method ); -
/** * Filter whether this sign-in has to pass a second factor. */ apply_filters( 'authdock_should_require_2fa', $user_has_2fa || $role_enforced, $user, $role_enforced ); -
/** * This filter is documented later in this method. */ apply_filters( 'authdock_social_profile', array( 'id' => '', 'name' => '', 'email' => '', 'avatar' => '', 'verified' => false, ), $provider, $data, $token ); -
/** * Fires after a user's trusted devices are revoked. */ do_action( 'authdock_trusted_devices_revoked', $user_id, $count ); -
/** * Filter how many failed 2FA attempts an account tolerates. */ apply_filters( 'authdock_2fa_attempt_limit', 5 ); -
/** * Fires when an account is locked out of 2FA verification. */ do_action( 'authdock_2fa_lockout', $user_id, $attempts ); -
/** * Filter the 2FA lockout window. */ apply_filters( 'authdock_2fa_lockout_window', 15 * MINUTE_IN_SECONDS ); -
/** * Filter the available second factors. */ apply_filters( 'authdock_2fa_methods', $methods ); -
/** * Fires when one account has absorbed an unusual number of failures. */ do_action( 'authdock_account_under_attack', $username, $count, $window ); -
/** * Filter whether to allow automatic social account linking by email. */ apply_filters( 'authdock_allow_social_account_linking', $allow_linking, $provider, $profile, $user ); -
/** * Filter the analytics report before it is drawn. */ apply_filters( 'authdock_analytics_report', $report, $days ); -
/** * Filter one audit row before it is written. */ apply_filters( 'authdock_audit_event', array( 'event_type' => $event_type, 'user_id' => $user_id, 'ip' => $ip, 'user_agent' => $user_agent, 'context' => $context, ) ); -
/** * Fires when an audit event could not be stored. */ do_action( 'authdock_audit_write_failed', $event_type, $failures ); -
/** * Filter the bot-protection providers. */ apply_filters( 'authdock_bot_providers', $providers ); -
/** * Filter a provider's verdict. */ apply_filters( 'authdock_bot_verify_response', ! empty( $body['success'] ), $body, $provider ); -
/** * Filter how many breach appearances make a password unusable. */ apply_filters( 'authdock_breach_threshold', $threshold ); -
/** * Filter the paths excluded from every page cache. */ apply_filters( 'authdock_cache_excluded_paths', $paths ); -
/** * Filter the settings whose change invalidates a stored page. */ apply_filters( 'authdock_cache_purge_options', $relevant ); -
/** * Filter the cookies that take a visitor out of every page cache. */ apply_filters( 'authdock_cache_vary_cookies', $ours ); -
/** * Filter the resolved client IP. */ apply_filters( 'authdock_client_ip', $resolved ); -
/** * Filter whether one conditional-content block shows its contents. */ apply_filters( 'authdock_conditional_content', $met, $attributes ); -
/** * Filter where `authdock.json` is looked for. */ apply_filters( 'authdock_config_files', $paths ); -
/** * Filter the country centroid table. */ apply_filters( 'authdock_country_centroids', $centroids ); -
/** * Filter the diagnostic results. */ apply_filters( 'authdock_diagnostics', $checks ); -
/** * Filter the file an AuthDock template resolves to. */ apply_filters( 'authdock_email_template_path', $path, $template, $fallback ); -
/** * Filter which modules are loaded. */ apply_filters( 'authdock_enabled_modules', (array) $state['keys'] ); -
/** * Filter the wording the front-end forms use for each error code. */ apply_filters( 'authdock_form_messages', $messages ); -
/** * Fires before a frontend request is refused. */ do_action( 'authdock_frontend_access_blocked', $path, $reason ); -
/** * Filter whether frontend access control skips this request. */ apply_filters( 'authdock_frontend_access_exempt', false ); -
/** * Filter the message shown on a refused frontend request. */ apply_filters( 'authdock_frontend_access_message', __( 'Not found', 'authdock' ) ); -
/** * Filter the body of a refused frontend request. */ apply_filters( 'authdock_frontend_access_response', self::render_body( $mode ), $mode, $path, $reason ); -
/** * Filter where a geolocation database is read from. */ apply_filters( 'authdock_geo_database_path', trailingslashit( self::storage_directory() ) . $names[ $which ], $which ); -
/** * Filter a location decision. */ apply_filters( 'authdock_geo_decision', $decision, $context, $resolved, $user ); -
/** * Filter what is known about an address. */ apply_filters( 'authdock_geo_resolve', $result, $ip ); -
/** * Filter the speed above which travel is called impossible. */ apply_filters( 'authdock_impossible_travel_speed', 900.0 ); -
/** * Filter how the current request is classified. */ apply_filters( 'authdock_is_non_interactive_request', $context ); -
/** * Filter whether a non-HTTPS key list may be fetched. */ apply_filters( 'authdock_jwt_allow_insecure_jwks', false, $jwks_uri ); -
/** * Filter how long a lockout lasts, in seconds. */ apply_filters( 'authdock_lockout_duration', $duration, $num, $ip, $username ); -
/** * Filter the addresses this site refuses sign-ins from. */ apply_filters( 'authdock_login_limiter_blacklist', $entries, $ip ); -
/** * Filter the login-page presets. */ apply_filters( 'authdock_login_presets', $presets ); -
/** * Filter the risk score for a sign-in. */ apply_filters( 'authdock_login_risk_score', $score, $user, $reasons ); -
/** * Filter which wp-login.php actions load the public scripts. */ apply_filters( 'authdock_login_script_actions', array( 'login', 'authdock_2fa' ) ); -
/** * Filter the login surfaces AuthDock attaches its UI to. */ apply_filters( 'authdock_login_surfaces', $surfaces ); -
/** * Filter how many distinct addresses one client may target per hour. */ apply_filters( 'authdock_magic_link_address_limit', 5 ); -
/** * Filter whether a magic-link request may proceed. */ apply_filters( 'authdock_magic_link_allowed', true, $email ); -
/** * Filter the per-client magic-link request limit. */ apply_filters( 'authdock_magic_link_ip_limit', $limit ); -
/** * Filter how many active lockouts one listing returns. */ apply_filters( 'authdock_max_listed_lockouts', self::MAX_LISTED ); -
/** * Filter the module registry. */ apply_filters( 'authdock_modules', $modules ); -
/** * Filter the network policies. */ apply_filters( 'authdock_network_policies', $policies ); -
/** * Fires when AuthDock declares a response uncacheable. */ do_action( 'authdock_no_cache', self::$reason ); -
/** * Filter the non-interactive authentication policy. */ apply_filters( 'authdock_non_interactive_2fa_policy', $policy, $context, $user ); -
/** * Filter the notification delivery channels. */ apply_filters( 'authdock_notification_channels', $channels ); -
/** * Filter which channels one notification is delivered through. */ apply_filters( 'authdock_notification_delivery', $wanted, (string) $message['event'], $audience ); -
/** * Filter a notification before any channel sees it. */ apply_filters( 'authdock_notification_message', $message, $audience ); -
/** * Filter the authorisation-request parameters. */ apply_filters( 'authdock_oauth_authorize_params', $params, $provider, $state ); -
/** * Filter the client secret sent to a provider's token endpoint. */ apply_filters( 'authdock_oauth_client_secret', $secret, $provider, $config ); -
/** * Filter the token response before anything is done with it. */ apply_filters( 'authdock_oauth_token_response', $body, $provider, $config, $state ); -
/** * Filter the WordPress roles a set of IdP groups maps to. */ apply_filters( 'authdock_oidc_roles', $roles, $groups, $provider, $claims ); -
/** * Filter whether a verified passkey may sign this account in. */ apply_filters( 'authdock_passkey_login_allowed', true, $user ); -
/** * Filter whether a proved account may sign in without a password. */ apply_filters( 'authdock_passwordless_login_allowed', true, $user, $method ); -
/** * Filter the proof-of-work difficulty, in leading zero bits. */ apply_filters( 'authdock_pow_difficulty', $difficulty ); -
/** * Filter the REST namespaces anonymous visitors may reach. */ apply_filters( 'authdock_public_rest_namespaces', array_values( $whitelist ) ); -
/** * Fires when AuthDock asks the site's caches to drop what they hold. */ do_action( 'authdock_purge_caches', $urls ); -
/** * Filter how many failed re-authentication attempts are allowed. */ apply_filters( 'authdock_reauth_attempt_limit', 5 ); -
/** * Filter how long a re-authentication stays good for. */ apply_filters( 'authdock_reauth_grace', 10 * MINUTE_IN_SECONDS ); -
/** * Filter whether changing an account's sign-in needs a current code. */ apply_filters( 'authdock_reauth_requires_code', $required, absint( $user_id ) ); -
/** * Filter the re-authentication throttle window. */ apply_filters( 'authdock_reauth_window', 15 * MINUTE_IN_SECONDS ); -
/** * Fires whenever an emergency key is presented. */ do_action( 'authdock_recovery_key_presented', $context, $outcome, $ip ); -
/** * Filter who hears about emergency key use. */ apply_filters( 'authdock_recovery_key_recipients', $recipients, $context, $outcome ); -
/** * Filter whether a passwordless login gets a long session. */ apply_filters( 'authdock_remember_passwordless', $remember ); -
/** * Filter whether a verified email is required to link to an existing account. */ apply_filters( 'authdock_require_verified_email', $required, $provider ); -
/** * Filter the risk signals. */ apply_filters( 'authdock_risk_signals', $signals, $user, $ip ); -
/** * Filter the score thresholds. */ apply_filters( 'authdock_risk_thresholds', $thresholds ); -
/** * Filter a security header value before it is sent. */ apply_filters( 'authdock_security_header', $value, $name ); -
/** * Filter the security-score checks. */ apply_filters( 'authdock_security_score_checks', $checks ); -
/** * Send one SMS. */ apply_filters( 'authdock_send_sms', false, $number, $message ); -
/** * Filter the settings sections the REST API will read and write. */ apply_filters( 'authdock_settings_schema', $sections ); -
/** * Filter whether this request gets a challenge. */ apply_filters( 'authdock_should_challenge', $challenge, $context ); -
/** * Filter the SMS gateways on offer. */ apply_filters( 'authdock_sms_gateways', array() ); -
/** * Filter the wording for a failed social sign-in. */ apply_filters( 'authdock_social_error_messages', $messages ); -
/** * Filter the social account linking policy. */ apply_filters( 'authdock_social_linking_policy', $policy, $provider ); -
/** * Fires after a social or OIDC sign-in has resolved to an account. */ do_action( 'authdock_social_login_complete', $user_id, $provider, $profile ); -
/** * Filter the capabilities that block automatic social account linking. */ apply_filters( 'authdock_social_privileged_capabilities', $capabilities, $user ); -
/** * Filter the OAuth providers AuthDock can talk to. */ apply_filters( 'authdock_social_providers', $providers ); -
/** * Fires when an address is blocked for spraying usernames. */ do_action( 'authdock_spray_blocked', $ip, $usernames ); -
/** * Filter whether one event is streamed. */ apply_filters( 'authdock_stream_event', in_array( $category, $wanted, true ), $event, $category ); -
/** * Filter the origin a passkey assertion must claim. */ apply_filters( 'authdock_webauthn_origin', $origin ); -
/** * Filter the WebAuthn relying party ID. */ apply_filters( 'authdock_webauthn_rp_id', is_string( $host ) ? $host : '' ); -
/** * Filter the hardening wizard's steps. */ apply_filters( 'authdock_wizard_steps', $steps ); -
/** * This filter is documented in wp-login.php */ apply_filters( 'login_redirect', $redirect_to, $requested, $user ); -
/** * Fires inside the lost-password form, before the submit button. */ do_action( 'lostpassword_form' ); -
/** * Fires inside the registration form, before the submit button. */ do_action( 'register_form' ); -
do_action( 'authdock_log_event', 'access_blocked', $user->ID, array( 'reason' => 'blocked_role', 'roles' => implode( ', ', $intersect ), ) ); -
do_action( 'wp_login', $user->user_login, $user ); -
do_action( 'authdock_social_linked', $user->ID, $provider ); -
do_action( 'authdock_2fa_disabled', $user_id ); -
do_action( 'authdock_2fa_enabled', $user->ID ); -
apply_filters( 'authdock_account_attempt_threshold', 20, $username ); -
apply_filters( 'authdock_account_attempt_window', HOUR_IN_SECONDS ); -
apply_filters( 'authdock_allow_social_registration', true, $provider, $profile ); -
do_action( 'authdock_form_rejected', $errors ); -
do_action( 'authdock_lockout', $ip, $username, $num, $duration ); -
apply_filters( 'authdock_magic_link_allows_email_code', false, $user ); -
apply_filters( 'authdock_max_trusted_devices', self::MAX_DEVICES, $user_id ); -
apply_filters( 'authdock_spray_threshold', 10, $ip ); -
apply_filters( 'authdock_spray_window', HOUR_IN_SECONDS ); -
do_action( 'litespeed_control_set_nocache', self::$reason ); -
do_action( 'litespeed_purge_url', $url ); -
apply_filters( 'wp_mail_from', $ours );
Generated from AuthDock'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: