Authlify icon
Membership & Users

Authlify hooks reference

Authlify 3.2.0 has 32 actions and 117 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.

functions.phpyour child theme
// Run your own code when Authlify fires an action
add_action( 'authlify_blocked_request', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Authlify is about to use
add_filter( 'authlify_validate_settings', function( $values, $page, $tab ) {
	// Change $values here.
	return $values;
}, 10, 3 );

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

  • inc/Admin/Menu.php line 449 · used in 3 places
    /**
     * Validates submitted values before saving. Return a WP_Error to refuse.
     */
    apply_filters( 'authlify_validate_settings', $values, $page, $tab );
  • inc/Admin/ActivityPage.php line 91 · used in 2 places
    /**
     * Filters the Activity tabs: key => array( label, callable ). "log" and
     * "settings" are built in.
     */
    apply_filters( 'authlify_activity_tabs', array() );
  • inc/Login/Router.php line 433 · used in 2 places
    /**
     * Fires when a hidden login or admin URL is requested by a logged-out visitor.
     */
    do_action( 'authlify_blocked_request' );
  • inc/Captcha/Provider.php line 360 · used in 2 places
    /**
     * Filters the hostnames a CAPTCHA token may come from.
     */
    apply_filters( 'authlify_captcha_hostnames', $allowed );
  • inc/TwoFactor/AdminPage.php line 429 · used in 2 places
    /**
     * This filter is documented in inc/TwoFactor/Rest.php
     */
    apply_filters( 'authlify_confirm_identity', true, 'twofa_reset', $user_id );
  • inc/Admin/ToolsPage.php line 540 · used in 2 places
    /**
     * This action is documented below.
     */
    do_action( 'authlify_imported', $data );
  • inc/TwoFactor/LoginFlow.php line 855 · used in 2 places
    /**
     * This filter is documented in wp-login.php
     */
    apply_filters( 'login_redirect', $redirect_to, $requested, $user );
  • inc/Security/Limiter.php line 648 · used in 2 places
    /**
     * This action is documented in wp-includes/user.php
     */
    do_action( 'wp_login_failed', $username, $error );
  • inc/Abilities.php line 160
    /**
     * Filters Authlify's abilities before they are registered: change or remove
     * one. Keep the capability check.
     */
    apply_filters( 'authlify_abilities', self::definitions() );
  • inc/Abilities.php line 254
    /**
     * Filters what a read-only ability returns. Whoever runs it has the capability
     * that manages Authlify, but the output can travel to other tools, so think
     * before adding the login address.
     */
    apply_filters( 'authlify_ability_output', $output, $name );
  • inc/Security/Limiter.php line 347
    /**
     * Filters how many failures on one username pause it for unknown addresses.
     */
    apply_filters( 'authlify_account_pause_threshold', 2 * max(1, (int) Settings::get('user_attempts', 10)) );
  • inc/Security/Limiter.php line 757
    /**
     * Fires when a username is paused for unknown addresses.
     */
    do_action( 'authlify_account_paused', $username, $until );
  • inc/Admin/ActivityPage.php line 113
    /**
     * Fires at the end of the Activity page (attribution notices, extra panels).
     */
    do_action( 'authlify_activity_after', $tab );
  • inc/Login/Router.php line 461
    /**
     * Filters where blocked wp-admin requests are sent in "page not found" mode.
     */
    apply_filters( 'authlify_admin_404_url', home_url(user_trailingslashit('404')) );
  • inc/Admin/UI.php line 102
    /**
     * Filters the header branding (Authlify Pro white-label uses this).
     */
    apply_filters( 'authlify_admin_brand', array( 'name' => $pro ? 'Authlify Pro' : 'Authlify', 'version' => $pro ? AUTHLIFY_PRO_VERSION : AUTHLIFY_VERSION, 'logo' => self::logo(), 'links' => array( __('Docs', 'modify-login') => Docs::url(), __('Support', 'modify-login') => 'https://wordpress.org/support/plugin/modify-login/', ), ) );
  • inc/Admin/UI.php line 379
    /**
     * Filters the one-line lead shown under a page family's title.
     */
    apply_filters( 'authlify_admin_family_lead', isset($leads[$parent]) ? $leads[$parent] : '', $parent );
  • inc/Log/Log.php line 170
    /**
     * Filters whether the free admin-lockout email is sent (Authlify Pro turns it
     * off when its own alerts cover it).
     */
    apply_filters( 'authlify_admin_lockout_email', (bool) Settings::get('alert_admin_lockout', false) );
  • inc/Admin/UI.php line 161
    /**
     * Filters the header navigation.
     */
    apply_filters( 'authlify_admin_nav', $items );
  • inc/Admin/Menu.php line 71
    /**
     * Filters which admin pages are tabs of another page.
     */
    apply_filters( 'authlify_admin_page_parents', array( 'authlify-redirects' => 'authlify-login-url', 'authlify-alerts' => 'modify-login-logs', 'authlify-agency' => 'authlify-tools', 'authlify-license' => 'authlify-tools', 'authlify-pro-two-factor' => 'authlify-two-factor', 'authlify-pro-passwordless' => 'authlify-social', 'authlify-pro-design' => 'modify-login-builder', ) );
  • inc/Admin/Menu.php line 49
    /**
     * Filters the admin pages. Modules add theirs (two-factor at 30, designer at
     * 40), Authlify Pro adds its own.
     */
    apply_filters( 'authlify_admin_pages', $pages );
  • inc/Admin/UI.php line 184
    /**
     * Filters the primary action in the header bar (at most one per page).
     */
    apply_filters( 'authlify_admin_primary_action', $action, Menu::current_slug() );
  • inc/Admin/Menu.php line 470
    /**
     * Fires after a settings form was saved.
     */
    do_action( 'authlify_admin_saved', $page, $tab, $values );
  • inc/Admin/UI.php line 568
    /**
     * Filters the section navigation of the current page.
     */
    apply_filters( 'authlify_admin_sections', $items, $parent );
  • inc/Login/Router.php line 645
    /**
     * Filters whether a wp-login.php request should be let through while hidden.
     */
    apply_filters( 'authlify_allow_wp_login_request', false, $action );
  • inc/Captcha/Altcha.php line 173
    /**
     * Filters the ALTCHA difficulty (largest secret number). Default 1,000,000:
     * about half a second of hashing in a desktop browser.
     */
    apply_filters( 'authlify_altcha_max_number', self::MAX_NUMBER );
  • inc/Captcha/Altcha.php line 284
    /**
     * Filters how many ALTCHA challenges one address may fetch per 10 minutes.
     */
    apply_filters( 'authlify_altcha_rate_limit', 120 );
  • inc/Security/Limiter.php line 897
    /**
     * Filters how many lines the block list may hold before automatic blocking
     * stops adding to it (each login checks every line).
     */
    apply_filters( 'authlify_auto_block_cap', 2000 );
  • inc/TwoFactor/LoginFlow.php line 1177
    /**
     * Filters whether a user may sign in without a password (passkey, two-factor
     * recovery link, or an add-on's own method). Return a WP_Error to refuse. The
     * password form uses `authenticate` instead.
     */
    apply_filters( 'authlify_can_sign_in', true, $user, (string) $method );
  • inc/Captcha/Captcha.php line 706
    /**
     * Filters whether this login request must pass the CAPTCHA.
     */
    apply_filters( 'authlify_captcha_check_login', true, $form, $username );
  • inc/Captcha/Captcha.php line 207
    /**
     * Filters whether CAPTCHA protection applies to a form for this request.
     */
    apply_filters( 'authlify_captcha_form_enabled', $enabled, $form );
  • inc/Captcha/Integrations.php line 69
    /**
     * Filters the form integrations: key => array( class with static init(),
     * detect callable ).
     */
    apply_filters( 'authlify_captcha_integrations', $all );
  • inc/Captcha/Captcha.php line 692
    /**
     * Filters the form key of a login that another plugin's form started (the
     * integrations answer "login" for their own forms).
     */
    apply_filters( 'authlify_captcha_login_form', '', $username );
  • inc/Captcha/Captcha.php line 755
    /**
     * Filters the form key of a lost-password request another plugin's form
     * started (the integrations answer "lostpassword").
     */
    apply_filters( 'authlify_captcha_lostpassword_form', '' );
  • inc/Captcha/Captcha.php line 573
    /**
     * Filters the CAPTCHA error message.
     */
    apply_filters( 'authlify_captcha_message', $text, $form, $reason );
  • inc/Captcha/Captcha.php line 394
    /**
     * Filters the widget theme: auto (follows prefers-color-scheme), light or
     * dark.
     */
    apply_filters( 'authlify_captcha_theme', 'auto' );
  • inc/Captcha/Provider.php line 250
    /**
     * Filters the siteverify timeout in seconds.
     */
    apply_filters( 'authlify_captcha_timeout', 8, $this->id() );
  • inc/Net/Ip.php line 74
    /**
     * Filters the resolved client IP.
     */
    apply_filters( 'authlify_client_ip', $ip, $remote );
  • inc/Diagnostics/Conflicts.php line 125
    /**
     * Filters the other login-security plugins Authlify warns about.
     */
    apply_filters( 'authlify_conflicting_plugins', $found );
  • inc/Diagnostics/SiteHealth.php line 98
    /**
     * Filters whether Authlify reports WP-Cron as not running.
     */
    apply_filters( 'authlify_cron_ok', !$hooks && !$stale, $hooks );
  • inc/Admin/Dashboard.php line 168
    /**
     * Adds cards to the Dashboard's main column (Authlify Pro: features,
     * insights).
     */
    do_action( 'authlify_dashboard' );
  • inc/Admin/Dashboard.php line 76
    /**
     * Filters the dashboard checklist (CAPTCHA and two-factor add theirs).
     */
    apply_filters( 'authlify_dashboard_checks', $checks );
  • inc/Admin/Dashboard.php line 185
    /**
     * Adds cards to the Dashboard's side column (Authlify Pro: the licence).
     */
    do_action( 'authlify_dashboard_side' );
  • inc/Designer/Compiler.php line 193
    /**
     * Filters the compiled login CSS.
     */
    apply_filters( 'authlify_design_css', $css, $d );
  • inc/Designer/MatchSite.php line 214
    /**
     * Filters the design built by "Match my site".
     */
    apply_filters( 'authlify_design_match_site', $design );
  • inc/Designer/Design.php line 223
    /**
     * Filters a stored design while it is upgraded to the current version.
     */
    apply_filters( 'authlify_design_migrate', $design, $version );
  • inc/Designer/Design.php line 592
    /**
     * Fires after the login design was saved.
     */
    do_action( 'authlify_design_saved', $clean, $old );
  • inc/Designer/Design.php line 148
    /**
     * Filters the design schema (Authlify Pro adds fields here).
     */
    apply_filters( 'authlify_design_schema', $schema );
  • inc/Designer/Templates.php line 120
    /**
     * Filters the template gallery (Authlify Pro adds its templates).
     */
    apply_filters( 'authlify_design_templates', $out );
  • inc/Designer/Frontend.php line 512
    /**
     * Lets a module render its own preview screen (e.g. the two-factor step).
     * Print the screen with login_header()/login_footer() and return true.
     */
    apply_filters( 'authlify_designer_preview_screen', false, $screen );
  • inc/Diagnostics/SiteHealth.php line 492
    /**
     * Filters the page caches reported by the Site Health cache test.
     */
    apply_filters( 'authlify_detected_caches', $found, $path );
  • inc/Admin/Docs.php line 194
    /**
     * Filters the documentation articles. Authlify Pro replaces the Pro overview
     * articles (same IDs) with full articles and adds its own.
     */
    apply_filters( 'authlify_docs_articles', $articles );
  • inc/Admin/Docs.php line 254
    /**
     * Filters the product name used throughout the documentation.
     */
    apply_filters( 'authlify_docs_brand', 'Authlify' );
  • inc/Admin/ToolsPage.php line 381
    /**
     * Filters the exported data (the designer adds the login page design).
     */
    apply_filters( 'authlify_export_data', array( 'plugin' => 'authlify', 'version' => AUTHLIFY_VERSION, 'exported' => gmdate('c'), 'settings' => $settings, ) );
  • inc/Admin/ToolsPage.php line 396
    /**
     * Filters the settings export file name (Authlify Pro's white label uses its
     * own name).
     */
    apply_filters( 'authlify_export_filename', 'authlify-settings-' . gmdate('Y-m-d') . '.json' );
  • inc/Admin/ToolsPage.php line 427
    /**
     * Filters exported settings after secrets were removed.
     */
    apply_filters( 'authlify_export_settings_clean', $settings );
  • inc/Security/Hardening.php line 457
    /**
     * Filters whether anonymous REST requests are allowed on a private site.
     */
    apply_filters( 'authlify_force_login_allow_rest', false );
  • inc/Security/Hardening.php line 533
    /**
     * Filters query variables that may accompany an excluded (public) path on a
     * private site.
     */
    apply_filters( 'authlify_force_login_allowed_vars', array('error') );
  • inc/Security/Hardening.php line 432
    /**
     * Filters whether a logged-out visitor may comment on a post of a private
     * site.
     */
    apply_filters( 'authlify_force_login_comment_allowed', $public, (int) $post_id );
  • inc/Security/Hardening.php line 503
    /**
     * Filters whether the current request is public on a private site.
     */
    apply_filters( 'authlify_force_login_excluded', false );
  • inc/Net/Geo.php line 58
    /**
     * Filters the country for an IP (local database lookups hook in here).
     */
    apply_filters( 'authlify_geo_lookup', $country, $ip, $source );
  • inc/Login/Router.php line 132
    /**
     * Filters whether the login URL is kept from a logged-in person. Return false
     * to give members the normal logout link and page.
     */
    apply_filters( 'authlify_hide_login_from_member', $hide, $user );
  • inc/Captcha/Honeypot.php line 102
    /**
     * Filters how long a honeypot stamp stays valid.
     */
    apply_filters( 'authlify_honeypot_lifetime', 7 * DAY_IN_SECONDS );
  • inc/Captcha/Honeypot.php line 153
    /**
     * Filters the minimum seconds between showing a form and submitting it.
     */
    apply_filters( 'authlify_honeypot_min_seconds', 2 );
  • inc/Captcha/Honeypot.php line 118
    /**
     * Filters how often one honeypot stamp may be submitted per hour.
     */
    apply_filters( 'authlify_honeypot_stamp_limits', array('ip' => 10, 'total' => 300) );
  • inc/Admin/ToolsPage.php line 62
    /**
     * Filters the importers (the designer adds LoginPress and Colorlib designs).
     */
    apply_filters( 'authlify_importers', array( 'wps-hide-login' => array( __('WPS Hide Login: login URL and redirect page', 'modify-login'), function () { return '' !== (string) get_option('whl_page', get_site_option('whl_page', '')) || ToolsPage::plugin_active('wps-hide-login/wps-hide-login.php'); }, function () { $slug = Settings::clean_slug(get_option('whl_page', get_site_option('whl_page', 'login'))); if ('login' === $slug) { ret... );
  • inc/Install/Installer.php line 102
    /**
     * Filters the CREATE TABLE statements (modules add their own tables).
     */
    apply_filters( 'authlify_install_tables', $sql, $prefix, $charset );
  • inc/Security/Limiter.php line 1020
    /**
     * Fires after an address or range was added to the block list.
     */
    do_action( 'authlify_ip_blocked', $subject, $context );
  • inc/Security/Limiter.php line 397
    /**
     * Filters whether an address counts as known for a paused account.
     */
    apply_filters( 'authlify_known_address', (bool) $wpdb->get_var($wpdb->prepare("SELECT 1 FROM {$table} WHERE ip = %s AND event = 'login_success' AND user_id = %d LIMIT 1", $stored, $user->ID)), $user, $ip );
  • inc/Diagnostics/LeakCheck.php line 337
    /**
     * Fires after a Leak Check run.
     */
    do_action( 'authlify_leak_check_done', $result );
  • inc/Diagnostics/LeakCheck.php line 637
    /**
     * Filters the public login and registration pages the Leak Check visits.
     */
    apply_filters( 'authlify_leak_check_login_pages', $urls );
  • inc/Diagnostics/LeakCheck.php line 572
    /**
     * Filters the Leak Check HTTP probes (add-ons can add their own).
     */
    apply_filters( 'authlify_leak_check_probes', $out );
  • inc/Security/Limiter.php line 876
    /**
     * Fires when an IP or network is locked out.
     */
    do_action( 'authlify_lockout', $scope, $subject, $until, $username );
  • inc/Security/Limiter.php line 683
    /**
     * Filters the lockout message (the Recovery module appends an unlock-by-email
     * link).
     */
    apply_filters( 'authlify_lockout_message', $message, $until );
  • inc/Log/Log.php line 240
    /**
     * Filters what an event stores as context (for example where the request came
     * from).
     */
    apply_filters( 'authlify_log_context', $context, $event, $args );
  • inc/Admin/ActivityPage.php line 451
    /**
     * Filters the details column.
     */
    apply_filters( 'authlify_log_details', $parts, $event, $context );
  • inc/Log/Log.php line 38
    /**
     * Filters the known event types (key → label).
     */
    apply_filters( 'authlify_log_events', array( 'login_success' => __('Logged in', 'modify-login'), 'login_failed' => __('Failed login', 'modify-login'), 'lockout' => __('Locked out', 'modify-login'), 'unlock' => __('Unlocked', 'modify-login'), 'denied' => __('Blocked IP', 'modify-login'), 'username_refused' => __('Refused username', 'modify-login'), 'altcha_limited' => __('Many ALTCHA requests from one address', 'modify-login'), 'los... );
  • inc/Log/Log.php line 386
    /**
     * Filters the site the activity log is limited to (0 = every site).
     */
    apply_filters( 'authlify_log_scope_blog', $blog );
  • inc/Log/Log.php line 276
    /**
     * Fires after an event is logged (alerts and add-ons listen here).
     */
    do_action( 'authlify_logged', $event, $row, $id );
  • inc/Login/Recovery.php line 209
    /**
     * Filters the login-URL email.
     */
    apply_filters( 'authlify_login_url_email', array('to' => $recipients, 'subject' => $subject, 'message' => $body), $url );
  • inc/Admin/LoginUrlPage.php line 77
    /**
     * Fires above the Login URL settings (Leak Check adds its button here).
     */
    do_action( 'authlify_login_url_page' );
  • inc/Login/Recovery.php line 565
    /**
     * Filters how many reset emails the public lost-password screen sends per hour
     * for one account, and how many requests one address may make.
     */
    apply_filters( 'authlify_lost_public_limits', array('account' => self::LOST_PER_ACCOUNT, 'address' => self::LOST_PER_ADDRESS) );
  • inc/Designer/MatchSite.php line 391
    /**
     * Filters the brand colours "Match my site" reads from the theme.
     */
    apply_filters( 'authlify_match_site_theme_colors', $roles, $template );
  • inc/Admin/Menu.php line 263
    /**
     * Filters the admin menu label (Authlify Pro white-label uses this).
     */
    apply_filters( 'authlify_menu_label', 'Authlify' );
  • inc/Plugin.php line 86
    /**
     * Filters the modules Authlify boots. Each class needs a static init().
     */
    apply_filters( 'authlify_modules', $modules );
  • inc/TwoFactor/LoginFlow.php line 1035
    /**
     * Filters the user a passkey signs in (return a WP_Error to refuse). Authlify
     * Pro applies its access rules (countries, login hours, honeypot bans) here.
     */
    apply_filters( 'authlify_passkey_login_user', $user );
  • inc/TwoFactor/Passkeys.php line 210
    /**
     * Filters the origins passkey ceremonies are accepted from.
     */
    apply_filters( 'authlify_passkey_origins', $origins );
  • inc/TwoFactor/Passkeys.php line 186
    /**
     * Filters the WebAuthn relying-party ID (default: the site host).
     */
    apply_filters( 'authlify_passkey_rp_id', $host );
  • inc/Log/Log.php line 217
    /**
     * Short-circuits logging (Leak Check probes use this). Return true to skip.
     */
    apply_filters( 'authlify_pre_log', false, $event, $args );
  • inc/Admin/ProPage.php line 55
    /**
     * Filters the plans shown on the Free vs Pro screen.
     */
    apply_filters( 'authlify_pro_plans', array( array( 'name' => __('Personal', 'modify-login'), 'slug' => 'personal', 'sites' => 1, 'line' => __('For one business site with staff or members.', 'modify-login'), 'yearly' => array('49', 1), 'lifetime' => array('129', 4), 'featured' => false, ), array( 'name' => __('Plus', 'modify-login'), 'slug' => 'plus', 'sites' => 5, 'line' => __('For a business or store with a few sites.', 'modify-l... );
  • inc/Admin/ProtectionPage.php line 46
    /**
     * Filters the Protection tabs.
     */
    apply_filters( 'authlify_protection_tabs', array( 'limits' => array(__('Brute force', 'modify-login'), array(__CLASS__, 'render_limits')), 'hardening' => array(__('Hardening', 'modify-login'), array(__CLASS__, 'render_hardening')), ) );
  • inc/Login/Router.php line 763
    /**
     * Filters the address public pages use instead of the hidden login URL
     * (WooCommerce block settings). Never return the login URL itself.
     */
    apply_filters( 'authlify_public_login_url', $url );
  • inc/Captcha/RecaptchaV2.php line 78
    /**
     * Filters the reCAPTCHA script URL (use www.recaptcha.net where google.com is
     * blocked).
     */
    apply_filters( 'authlify_recaptcha_api_url', 'https://www.google.com/recaptcha/api.js' );
  • inc/Captcha/RecaptchaV2.php line 54
    /**
     * Filters the reCAPTCHA verify URL (use www.recaptcha.net where google.com is
     * blocked).
     */
    apply_filters( 'authlify_recaptcha_verify_url', 'https://www.google.com/recaptcha/api/siteverify' );
  • inc/TwoFactor/Recovery.php line 438
    /**
     * Filters the user a two-factor recovery link signs in (return a WP_Error to
     * refuse). Authlify Pro applies its access rules here.
     */
    apply_filters( 'authlify_recovery_login_user', $allowed ? $allowed : $user );
  • inc/Login/Redirects.php line 110
    /**
     * Filters the redirect URL for a user.
     */
    apply_filters( 'authlify_redirect_url', self::expand($global, $user), $user, $type );
  • inc/Compat/Caching.php line 102
    /**
     * Fires when cache exclusions should be refreshed.
     */
    do_action( 'authlify_refresh_cache_exclusions' );
  • inc/Abilities.php line 172
    /**
     * Fires after Authlify's read-only abilities are registered, inside
     * `wp_abilities_api_init`. Authlify Pro registers its write abilities here.
     * Use the category Abilities::CATEGORY, check a capability and write a log
     * entry.
     */
    do_action( 'authlify_register_abilities' );
  • inc/Cli.php line 181
    /**
     * Resets every two-factor method for a user.
     */
    do_action( 'authlify_reset_two_factor', $user->ID );
  • inc/Admin/Menu.php line 418
    /**
     * Filters which settings only one screen may write: key => page key. Keys
     * mapped to '' are internal and never written by a form (the pending login
     * URL, for example, is only set by the confirm flow). The client lists the
     * keys it posts, so without this any Authlify form nonce could set, say, the
     * login URL and skip its confirm step.
     */
    apply_filters( 'authlify_settings_owner_pages', array( 'login_slug' => 'login-url', 'pending_slug' => '', 'pending_token' => '', 'pending_expires' => '', 'delete_data' => 'tools', 'onboarding_done' => '', ) );
  • inc/Settings.php line 127
    /**
     * Filters the settings schema. Modules and add-ons register their keys here.
     */
    apply_filters( 'authlify_settings_schema', $schema );
  • inc/Settings.php line 259
    /**
     * Fires after settings are saved.
     */
    do_action( 'authlify_settings_updated', $new, $old );
  • inc/Admin/Upsell.php line 56
    /**
     * Filters whether Authlify shows its contextual Pro pointers (the
     * Plugins-screen link, the small Pro rows, the inline cards, the Dashboard
     * card and the review request).
     */
    apply_filters( 'authlify_show_pro_pointers', !Plugin::has_pro() );
  • inc/Security/SigninNotice.php line 116
    /**
     * Filters whether the "new sign-in" email is sent.
     */
    apply_filters( 'authlify_signin_notice_email', true, $user, $info );
  • inc/Security/SigninNotice.php line 267
    /**
     * Filters the "new sign-in" email.
     */
    apply_filters( 'authlify_signin_notice_mail', array( 'to' => $user->user_email, 'subject' => $subject, 'message' => implode("\n", $lines), ), $user, $info );
  • inc/TwoFactor/Totp.php line 187
    /**
     * Filters the issuer shown in authenticator apps.
     */
    apply_filters( 'authlify_totp_issuer', $site, $user );
  • inc/TwoFactor/LoginFlow.php line 450
    /**
     * Filters how many wrong second-step codes an account may take in an hour,
     * from any address, before the step pauses for that account.
     */
    apply_filters( 'authlify_twofactor_account_limit', self::ACCOUNT_LIMIT, $user );
  • inc/TwoFactor/AdminPage.php line 162
    /**
     * Fires after the Two-factor settings form.
     */
    do_action( 'authlify_twofactor_admin_after' );
  • inc/TwoFactor/AdminPage.php line 152
    /**
     * Adds panels inside the Two-factor settings form (Authlify Pro policies).
     */
    do_action( 'authlify_twofactor_admin_panels' );
  • inc/TwoFactor/LoginFlow.php line 1091
    /**
     * Filters whether a user with 2FA may use the account password over XML-RPC or
     * REST.
     */
    apply_filters( 'authlify_twofactor_api_password_allowed', false, $user );
  • inc/TwoFactor/TwoFactor.php line 334
    /**
     * Filters the two-factor methods. Authlify Pro registers email codes here.
     */
    apply_filters( 'authlify_twofactor_methods', $methods );
  • inc/TwoFactor/TwoFactor.php line 182
    /**
     * Filters which other plugin handles two-factor login ('' for none). While one
     * does, Authlify does not intercept logins or show the passkey button.
     */
    apply_filters( 'authlify_twofactor_other_provider', $name );
  • inc/TwoFactor/AdminPage.php line 225
    /**
     * Filters the lines that explain what is paused while another two-factor
     * plugin is active (Authlify Pro adds its role enforcement).
     */
    apply_filters( 'authlify_twofactor_paused_lines', $lines, $other );
  • inc/TwoFactor/TwoFactor.php line 773
    /**
     * Filters the two-factor problems listed in Site Health.
     */
    apply_filters( 'authlify_twofactor_problems', $problems );
  • inc/TwoFactor/Recovery.php line 121
    /**
     * Filters whether people can get a two-factor recovery link by email.
     */
    apply_filters( 'authlify_twofactor_recovery_enabled', true );
  • inc/TwoFactor/Recovery.php line 300
    /**
     * Short-circuits a two-factor recovery email (Authlify Pro sends it with its
     * branded template). Return true or false to say whether it was sent.
     */
    apply_filters( 'authlify_twofactor_recovery_mail', null, $to, $type, $message );
  • inc/TwoFactor/TwoFactor.php line 502
    /**
     * Filters whether a user is required to use two-factor login.
     */
    apply_filters( 'authlify_twofactor_required', false, $user );
  • inc/TwoFactor/TwoFactor.php line 522
    /**
     * Filters where a user manages their two-factor methods (Authlify Pro points
     * customers to the Security page in My Account).
     */
    apply_filters( 'authlify_twofactor_settings_url', admin_url('profile.php') . '#authlify-two-factor', $user );
  • inc/TwoFactor/LoginFlow.php line 652
    /**
     * Filters where a failed second step is shown again ('' = here, on the login
     * page). Authlify Pro keeps WooCommerce customers in My Account. The error
     * message is kept for the pending login (state 'error').
     */
    apply_filters( 'authlify_twofactor_step_retry_url', '', $user, $nonce, $method, $error );
  • inc/TwoFactor/LoginFlow.php line 216
    /**
     * Filters whether this device may skip the second step (Authlify Pro: trusted
     * devices).
     */
    apply_filters( 'authlify_twofactor_trusted_device', false, $user );
  • inc/TwoFactor/LoginFlow.php line 820
    /**
     * Fires after the second step succeeded (or a passkey signed the user in),
     * before the login is completed.
     */
    do_action( 'authlify_twofactor_verified', $user, $method );
  • inc/Install/Upgrader.php line 62
    /**
     * Fires after an upgrade (modules run their own migrations here).
     */
    do_action( 'authlify_upgraded', $stored, AUTHLIFY_VERSION );
  • inc/Captcha/Integrations/WooBlocks.php line 209
    /**
     * Filters whether a guest block checkout must pass the CAPTCHA.
     */
    apply_filters( 'authlify_woo_blocks_check', true, $form, $request );
  • inc/Plugin.php line 48
    /**
     * Fires before Authlify loads (2.x action name).
     */
    do_action( 'before_modify_login_init' );
  • inc/Login/Router.php line 185
    /**
     * This filter is documented in wp-login.php
     */
    apply_filters( 'logout_redirect', '' !== $requested ? $requested : home_url('/'), $requested, $user );
  • inc/Plugin.php line 112
    /**
     * Fires once the plugin has loaded (2.x action name).
     */
    do_action( 'modify_login_init' );
  • inc/TwoFactor/LoginFlow.php line 824
    /**
     * This action is documented in wp-includes/user.php
     */
    do_action( 'wp_login', $user->user_login, $user );
  • inc/Captcha/Integrations.php line 213 · used in 4 places
    apply_filters( 'authlify_unlock_by_email', true );
  • inc/TwoFactor/Passkeys.php line 646 · used in 3 places
    do_action( 'authlify_passkeys_changed', $user->ID );
  • inc/Log/Log.php line 308 · used in 2 places
    apply_filters( 'authlify_ignored_failure_codes', array('authlify_locked', 'authlify_captcha', 'authlify_denied', 'authlify_2fa_failed', 'authlify_social_failed'), 'log' );
  • inc/TwoFactor/Import.php line 393
    apply_filters( 'authlify_2fa_import_seconds', 20 );
  • inc/Abilities.php line 74
    apply_filters( 'authlify_abilities_public', false );
  • inc/Admin/UI.php line 1167
    apply_filters( 'authlify_admin_notice_messages', array( 'slug_confirmed' => __('Your new login URL is confirmed and active. We emailed it to you as well.', 'modify-login'), 'unlocked' => __('Lockouts cleared.', 'modify-login'), 'ip_blocked' => __('Added to the block list. That address can no longer log in.', 'modify-login'), 'log_cleared' => __('Activity log cleared.', 'modify-login'), 'imported' => __('Settings imported.', 'modify-login'), '... );
  • inc/Admin/Menu.php line 89
    apply_filters( 'authlify_admin_tab_labels', array( 'authlify-login-url' => __('Login URL', 'modify-login'), 'authlify-redirects' => __('Redirects', 'modify-login'), 'authlify-two-factor' => __('Settings', 'modify-login'), 'authlify-pro-two-factor' => __('Rules & report', 'modify-login'), 'authlify-social' => __('Social & SSO', 'modify-login'), 'authlify-pro-passwordless' => __('Passwordless', 'modify-login'), 'modify-login-builder' => __... );
  • inc/Admin/Dashboard.php line 110
    do_action( 'authlify_dashboard_top' );
  • inc/Security/Limiter.php line 152
    do_action( 'authlify_denied_logged' );
  • inc/Security/Hardening.php line 369
    apply_filters( 'authlify_force_login_feeds', true );
  • inc/Admin/ActivityPage.php line 325
    apply_filters( 'authlify_geo_sources', array( 'off' => __('Do not record', 'modify-login'), 'headers' => __('Use the country Cloudflare provides (needs "Through Cloudflare" under Security → Brute force)', 'modify-login'), ) );
  • inc/Plugin.php line 105
    do_action( 'authlify_loaded' );
  • inc/Login/Router.php line 349
    apply_filters( 'authlify_logged_in_redirect', $to );
  • inc/Login/Router.php line 609
    apply_filters( 'authlify_public_admin_scripts', array('admin-post.php', 'admin-ajax.php', 'load-styles.php', 'load-scripts.php') );
  • inc/Net/Geo.php line 44
    apply_filters( 'authlify_trust_country_headers', false );
  • inc/Captcha/Integrations/BuddyPress.php line 39
    do_action( 'bp_authlify_captcha_errors' );
  • inc/Diagnostics/LeakCheck.php line 1028
    apply_filters( 'https_local_ssl_verify', false );
  • inc/Compat/Caching.php line 74
    do_action( 'litespeed_control_set_nocache', 'authlify login page' );
  • inc/Net/Ip.php line 77
    apply_filters( 'modify_login_client_ip', $ip );
  • inc/Diagnostics/LeakCheck.php line 804
    apply_filters( 'site_option_welcome_email', $sample );
  • inc/Diagnostics/LeakCheck.php line 852
    apply_filters( 'user_request_action_email_content', "To confirm this, click here:\n\n###CONFIRM_URL###\n\n###SITEURL###", $data );

Generated from Authlify'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.

Plugin 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 this

Not 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: