WP 2FA 4.3.0 has 64 actions and 138 filters, read directly from its source code on Nov 17, 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 WP 2FA fires an action
add_action( 'login_footer', function() {
// Your code runs here.
}, 10, 1 );
// Change a value WP 2FA is about to use
add_filter( 'login_redirect', function( $redirect_to, $arg2, $user ) {
// Change $redirect_to here.
return $redirect_to;
}, 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
-
login_redirect
filter/** * Filters the login redirect URL. */ apply_filters( 'login_redirect', $redirect_to, '', $user ); -
/** * This filter is documented in class-user-profile.php */ apply_filters( "{WP_2FA_PREFIX}enable_2fa_user_setting", true, $user->ID ); -
login_errors
filter/** * Filters the error messages displayed above the login form. */ apply_filters( 'login_errors', $errors ); -
/** * This filter is documented in class-user-profile.php */ apply_filters( "{WP_2FA_PREFIX}append_to_profile_form_content", $form_content, $user ); -
/** * This filter is documented in class-user-profile.php */ apply_filters( "{WP_2FA_PREFIX}enable_2fa_user_setting_description", '' ); -
/** * Filter to check if the interface has to disable this method. */ apply_filters( "{WP_2FA_PREFIX}method_settings_disabled", false, self::$main_class, $role ); -
/** * Allow extensions to register their primary methods. */ apply_filters( "{WP_2FA_PREFIX}methods_policy_settings_new", $all_methods, $policy_role ); -
{WP_2FA_PREFIX}rememberme
filter/** * Changes the remember me value. */ apply_filters( "{WP_2FA_PREFIX}rememberme", $requested ); -
/** * Add an option for external providers to add their own form buttons. */ apply_filters( "{WP_2FA_PREFIX}additional_form_buttons", $extra_buttons ); -
/** * Fires after the primary methods sortable list, allowing extensions to append * items. */ do_action( "{WP_2FA_PREFIX}after_primary_methods_toggles", $policy_role ); -
/** * Fires after the secondary methods, allowing extensions to add more. */ do_action( "{WP_2FA_PREFIX}after_secondary_methods_toggles", $policy_role ); -
/** * Notify the extensions and 3rd party developers that the settings array is * saved. */ do_action( "{WP_2FA_PREFIX}after_settings_save", Settings_Utils::get_option( WP_2FA_POLICY_SETTINGS_NAME, array() ) ); -
/** * Via that, you can change the grace period TTL. */ apply_filters( "{WP_2FA_PREFIX}allow_grace_period_in_seconds", false ); -
/** * Fires before the plugin settings rendering. */ do_action( "{WP_2FA_PREFIX}before_plugin_settings" ); -
/** * Fires before the plugin settings rendering. */ do_action( "{WP_2FA_PREFIX}before_plugin_settings_passkeys" ); -
/** * Filter the values we are about to store in the plugin settings. */ apply_filters( "{WP_2FA_PREFIX}filter_output_content_white_label", $output, $input ); -
/** * Filter the values we are about to store in the plugin settings. */ apply_filters( "{WP_2FA_PREFIX}filter_output_email_template_content", $output ); -
/** * Used from user settings controller. */ apply_filters( "{WP_2FA_PREFIX}roles_controller_exists", false ); -
/** * The filter can be user to skip the 2FA "login" form in some cases. For * example if the user has set their device as trusted. */ apply_filters( "{WP_2FA_PREFIX}skip_2fa_login_form", false, $user ); -
{WP_2FA_PREFIX}totp_title
filter/** * Changing the title of the login screen for the TOTP method. */ apply_filters( "{WP_2FA_PREFIX}totp_title", $site_name . ':' . User_Helper::get_user_object()->user_login, User_Helper::get_user_object() ); -
/** * Action: wp_2fa_wizard_enqueue_assets */ do_action( "{WP_2FA_PREFIX}wizard_enqueue_assets", $plugin_url, $version, self::SCRIPT_HANDLE ); -
/** * Action: wp_2fa_wizard_print_templates */ do_action( "{WP_2FA_PREFIX}wizard_print_templates" ); -
/** * Filter: wp_2fa_wizard_templates */ apply_filters( "{WP_2FA_PREFIX}wizard_templates", $templates ); -
/** * Notifies the freemius helper the the library is loaded. */ do_action( "{Licensing_Factory::FREEMIUS_INTERNAL_SLUG}_freemius_loaded" ); -
{WP_2FA_PREFIX}actions_check
filter/** * Allows 3rd party providers to add their own actions to the check. */ apply_filters( "{WP_2FA_PREFIX}actions_check", $actions_array ); -
/** * Add an option for external providers to add their own wizard steps. */ do_action( "{WP_2FA_PREFIX}additional_settings_steps" ); -
/** * Fires after the backup methods HTML rendering is finished. */ do_action( "{WP_2FA_PREFIX}after_backup_methods_setup", $setup_wizard, $data_role, null ); -
/** * Fires after the grace period. Gives the ability to change the parsed code. */ apply_filters( "{WP_2FA_PREFIX}after_grace_period", '', '', 'wp_2fa_policy' ); -
/** * Allow 3rd party developers to execute additional code when grace period * expires (account is locked) */ do_action( "{WP_2FA_PREFIX}after_grace_period_expired", self::get_user() ); -
/** * Fires at the end of the User access settings tab. */ do_action( "{WP_2FA_PREFIX}after_sitewide_policies", $policy_role ); -
/** * Filters the providers a user may be challenged with at login. */ apply_filters( "{WP_2FA_PREFIX}allowed_login_providers", array_values( array_unique( $allowed ) ), $user ); -
/** * Filters whether a provider has authenticated the user. This is a secondary * gate that can override the result of the validation filter. */ apply_filters( "{WP_2FA_PREFIX}authenticated_login_form", $authenticated, $user, $provider ); -
/** * Add an option for external providers to implement their own 2fa methods and * set them as available. */ apply_filters( "{WP_2FA_PREFIX}available_2fa_methods", $available_methods, $role ); -
/** * Extensions could change the enabled backup methods array. */ apply_filters( "{WP_2FA_PREFIX}backup_methods_enabled", $backup_methods, $user ); -
/** * Gives the ability to add additional backup methods */ apply_filters( "{WP_2FA_PREFIX}backup_methods_list", array() ); -
/** * Fires before grace period HTML rendering settings. */ do_action( "{WP_2FA_PREFIX}before_grace_period_settings" ); -
/** * Fires after the grace period. Gives the ability to change the parsed code. */ apply_filters( "{WP_2FA_PREFIX}before_grace_period_settings", '', '', 'wp_2fa_policy' ); -
/** * Allow extensions and 3rd party developers to change or check the settings * array. */ apply_filters( "{WP_2FA_PREFIX}before_settings_save", $output ); -
/** * Fires before user profile period HTML rendering settings. */ do_action( "{WP_2FA_PREFIX}before_user_profile_settings" ); -
/** * Gives the ability to remove the "Remove" button from the user profile page. */ apply_filters( "{WP_2FA_PREFIX}can_user_remove_2fa", \true, $user_id ); -
/** * Filters how long a freshly sent one-time code suppresses another send. */ apply_filters( "{WP_2FA_PREFIX}code_resend_debounce", self::DEFAULT_DEBOUNCE ); -
/** * Gives the ability to manually change the path to the config file. */ apply_filters( "{WP_2FA_PREFIX}config_file_path", (string) $path ); -
/** * Filter to add more customizable content dialogs on the 2FA code page. Each * dialog should have a unique setting key and an array of options which should * include: 'label' (string) - The label for the dialog, shown in the settings * page. 'description' (string) - A description for the dialog, shown in the * settings page. 'type' (string) - The type of input to use in the settings * page. Can be 'text' o... */ apply_filters( "{WP_2FA_PREFIX}customizable_content_dialogs", $customized_content_dialogs ); -
/** * Gives the ability to filter the default settings array of the plugin */ apply_filters( "{WP_2FA_PREFIX}default_settings", self::$default_settings ); -
{WP_2FA_PREFIX}disable_2fa
filter/** * Gives the ability to manipulate the output. */ apply_filters( "{WP_2FA_PREFIX}disable_2fa", $output ); -
/** * Add an option for external providers to implement their own email template * settings for the settings tab. */ apply_filters( "{WP_2FA_PREFIX}email_notification_definitions", $result ); -
/** * Add an option for external providers to implement their own email template * settings for the settings tab. */ apply_filters( "{WP_2FA_PREFIX}email_templates", $internal_mapping ); -
/** * Filter the values we are about to store in the plugin settings. */ apply_filters( "{WP_2FA_PREFIX}filter_output_content", $output, $input ); -
/** * Filter the values we are about to store in the plugin settings. */ apply_filters( "{WP_2FA_PREFIX}filter_output_content_general_settings", $output, $input ); -
/** * Allows 3rd parties to render something at the end of the existing grace * form. */ do_action( "{WP_2FA_PREFIX}grace_html_before_end", $user ); -
{WP_2FA_PREFIX}grace_period
filter/** * Gives the ability to manipulate the output. */ apply_filters( "{WP_2FA_PREFIX}grace_period", $output ); -
{WP_2FA_PREFIX}init
action/** * Fires when plugin is initiated. */ do_action( "{WP_2FA_PREFIX}init" ); -
/** * Filter that gives methods ability to make themselves enforced even the * global enforcement is off. */ apply_filters( "{WP_2FA_PREFIX}is_method_enforced", true, $user ); -
/** * Gives the ability to change the default JS wizard settings. */ apply_filters( "{WP_2FA_PREFIX}js_wizard_settings", $data_array ); -
{WP_2FA_PREFIX}loaded
action/** * Fires after the plugin is loaded. */ do_action( "{WP_2FA_PREFIX}loaded" ); -
/** * Enables / Disables the logging for the plugin. */ apply_filters( "{WP_2FA_PREFIX}logging_enabled", false ); -
/** * Allows 3rd parties to render something before the login button on the 2FA * "login" form. */ do_action( "{WP_2FA_PREFIX}login_before_submit_button", $user, $provider ); -
/** * Using that filter, the default text of the login button could be changed */ apply_filters( "{WP_2FA_PREFIX}login_button_text", \esc_html__( 'Log In', 'wp-2fa' ) ); -
/** * Gives the ability to remove the submit button from the plugin forms */ apply_filters( "{WP_2FA_PREFIX}login_disable_submit_button", false, $user, $provider ); -
{WP_2FA_PREFIX}login_form
action/** * Allows 3rd parties to render their own 2FA "login" form. */ do_action( "{WP_2FA_PREFIX}login_form", $user, $provider, $login_nonce ); -
/** * Allows 3rd parties to render something after the backup methods. */ do_action( "{WP_2FA_PREFIX}login_html_after_backup_providers", $user, $provider, $login_nonce, $redirect_to, $rememberme ); -
/** * Allows 3rd parties to render something at the end of the existing login * form. */ do_action( "{WP_2FA_PREFIX}login_html_before_end", $user, $provider, $login_nonce ); -
{WP_2FA_PREFIX}login_url
filter/** * Filters the URL the second authentication step posts back to. */ apply_filters( "{WP_2FA_PREFIX}login_url", $base, $params, $scheme ); -
/** * Gives the ability to change the default general settings. */ apply_filters( "{WP_2FA_PREFIX}loop_general_settings", $simple_settings_we_can_loop ); -
{WP_2FA_PREFIX}loop_settings
filter/** * Gives the ability to filter the settings array of the plugin. */ apply_filters( "{WP_2FA_PREFIX}loop_settings", $simple_settings_we_can_loop ); -
/** * Allows 3rd party providers to their own settings for the mail templates. */ apply_filters( "{WP_2FA_PREFIX}mail_default_settings", $default_settings ); -
/** * Allow extensions to register additional checkbox keys managed by this form. */ apply_filters( "{WP_2FA_PREFIX}managed_checkbox_keys", $managed_checkbox_keys, $policy_role ); -
/** * Shows methods in order. Every method is called and its code and order is * collected. That is used when there are no methods selected from the user. */ apply_filters( "{WP_2FA_PREFIX}methods_modal_options", array(), $role ); -
/** * Adds an option for external providers to add their own 2fa methods options. * And sorts them (our logic). */ do_action( "{WP_2FA_PREFIX}methods_options" ); -
/** * Option to re-configure the methods - all the methods are called and their * order and code is collected. Then the currently selected method is * positioned on top and methods are shown in order. That is called in the user * profile page. */ apply_filters( "{WP_2FA_PREFIX}methods_re_configure", array(), $role ); -
/** * Add an option for external providers to add their own reconfigure methods * options. */ do_action( "{WP_2FA_PREFIX}methods_reconfigure_options" ); -
/** * Shows methods in order. Every method is called and its code and order is * collected. Used in the wizards. */ apply_filters( "{WP_2FA_PREFIX}methods_settings", array(), $setup_wizard, $data_role, $role ); -
{WP_2FA_PREFIX}methods_setup
action/** * Fired right after the TOTP method HTML rendering. */ do_action( "{WP_2FA_PREFIX}methods_setup", $setup_wizard, $data_role, null ); -
/** * Add an option for external providers to add their own 2fa methods options. */ do_action( "{WP_2FA_PREFIX}methods_wizards" ); -
{WP_2FA_PREFIX}modal_methods
action/** * Add an option for external providers to add their own modal methods options. */ do_action( "{WP_2FA_PREFIX}modal_methods", $user ); -
/** * Using that filter, the default text of the login button could be changed */ apply_filters( "{WP_2FA_PREFIX}new_password_button_text", \esc_html__( 'Get New Password', 'wp-2fa' ) ); -
/** * No methods are enabled - return the previous selection. Gives the ability * for external providers to set the default values. */ apply_filters( "{WP_2FA_PREFIX}no_method_enabled", $output ); -
/** * Fires after the core policies-new scripts are enqueued. */ do_action( "{WP_2FA_PREFIX}policies_new_enqueue_scripts", $hook ); -
/** * Extensions could change the stored settings value, based on custom / * different / specific for role settings. */ apply_filters( "{WP_2FA_PREFIX}policy_settings", self::$plugin_settings[ WP_2FA_POLICY_SETTINGS_NAME ] ); -
/** * Filters the list of primary method setting keys to check. */ apply_filters( "{WP_2FA_PREFIX}primary_method_keys", $primary_method_keys ); -
/** * Action: wp_2fa_profile_backup_card_buttons */ do_action( "{WP_2FA_PREFIX}profile_backup_card_buttons", $backup, $data['user'] ); -
/** * Action: wp_2fa_profile_enqueue_assets */ do_action( "{WP_2FA_PREFIX}profile_enqueue_assets", $plugin_url, $version, $is_frontend ); -
/** * Filter: wp_2fa_profile_localized_data */ apply_filters( "{WP_2FA_PREFIX}profile_localized_data", $localized ); -
/** * Filter: wp_2fa_profile_template_data */ apply_filters( "{WP_2FA_PREFIX}profile_template_data", $data, $user, $user_type ); -
/** * Filter: wp_2fa_profile_template_file */ apply_filters( "{WP_2FA_PREFIX}profile_template_file", $template_file ); -
{WP_2FA_PREFIX}providers
filter/** * Filter the supplied providers. */ apply_filters( "{WP_2FA_PREFIX}providers", self::$all_providers ); -
/** * Filter the supplied providers. */ apply_filters( "{WP_2FA_PREFIX}providers_translated_names", self::$all_providers_names_translated ); -
/** * Gives the ability to manipulate the output. */ apply_filters( "{WP_2FA_PREFIX}redirect_after", $output ); -
/** * Fires when the user is authenticated. */ do_action( "{WP_2FA_PREFIX}remember_device", $user, $remember_device ); -
/** * 3rd party plugins could change the mail strings, or provide their own. */ apply_filters( "{WP_2FA_PREFIX}replacement_email_strings", self::get_mail_template_tags( false, $user_id, $token, $override_grace_period ) ); -
/** * 3rd party plugins could change this to their own. */ apply_filters( "{WP_2FA_PREFIX}replacement_reconfigure_strings", $replacements ); -
/** * 3rd party plugins could change the mail strings, or provide their own. */ apply_filters( "{WP_2FA_PREFIX}replacement_wizard_strings", $replacements ); -
/** * Allow extensions and 3rd party developers to run extra validation of the * output array. */ do_action( "{WP_2FA_PREFIX}run_extra_settings_validation", $output ); -
/** * At this point, none of the default providers is set / activated. This filter * allows additional providers to change the behavior. Checking the input array * for specific values (methods), and based on that we can raise error that * none of the allowed methods has bees selected by the user, or dismiss the * error otherwise. */ apply_filters( "{WP_2FA_PREFIX}save_additional_enabled_methods", true, $input ); -
/** * At this point, none of the default providers is set / activated. This filter * allows additional providers to change the behavior. Checking the input array * for specific values (methods), and based on that we can raise error that * none of the allowed methods has bees selected by the user, or dismiss the * error otherwise. */ apply_filters( "{WP_2FA_PREFIX}select_methods", $output, $setup_wizard ); -
/** * Filter can be used to disable the email notification about locked user * account. */ apply_filters( "{WP_2FA_PREFIX}send_account_locked_notification", true, self::get_user() ); -
/** * Extensions could change the extracted value, based on custom / different / * specific for role settings. */ apply_filters( "{WP_2FA_PREFIX}setting_generic", $value, $setting_name, $role ); -
{WP_2FA_PREFIX}settings_tabs
filter/** * Filter: `Settings tabs` */ apply_filters( "{WP_2FA_PREFIX}settings_tabs", $settings_tabs ); -
/** * Gives the ability for 3rd party scripts to add their own JS to the plugin * setup page. */ do_action( "{WP_2FA_PREFIX}setup_page_scripts" ); -
/** * Fires when the FE shortcode scripts are registered. */ do_action( "{WP_2FA_PREFIX}shortcode_scripts", true ); -
/** * Filter can be used to prevent locking of the user account when the grace * period expires. */ apply_filters( "{WP_2FA_PREFIX}should_account_be_locked_on_grace_period_expiration", true, self::get_user() ); -
/** * Allows 3rd party providers to remove the redirecting. check. */ apply_filters( "{WP_2FA_PREFIX}should_redirect_unconfigured", true ); -
/** * Filters the maximum attempted SMS setup sends per network per hour. */ apply_filters( "{WP_2FA_PREFIX}sms_setup_hourly_limit", 100 ); -
{WP_2FA_PREFIX}sms_templates
filter/** * Add an option for external providers to implement their own sms template * settings for the settings tab. */ apply_filters( "{WP_2FA_PREFIX}sms_templates", $internal_mapping ); -
/** * That allows to change the amount of thick for decrypting the key. */ apply_filters( "{WP_2FA_PREFIX}totp_time_step_allowance", self::DEFAULT_TIME_STEP_ALLOWANCE ); -
/** * Gives the ability for extensions to set their settings in the plugin. */ do_action( "{WP_2FA_PREFIX}update_network_settings" ); -
/** * Fires when the user is authenticated. */ do_action( "{WP_2FA_PREFIX}user_authenticated", $user ); -
/** * Gives the ability to manipulate the output. */ apply_filters( "{WP_2FA_PREFIX}user_profile_settings", $output ); -
/** * Allows providers to validate their 2FA "login" form. Providers should return * true on successful validation, or call exit on failure (e.g. to re-display * the login form with an error message). Default-deny: if no provider signals * success, authentication is rejected. */ apply_filters( "{WP_2FA_PREFIX}validate_login_form", $authenticated, $user, $provider ); -
/** * Gives the ability to filter the default settings array of the plugin */ apply_filters( "{WP_2FA_PREFIX}white_label_default_settings", self::$default_settings ); -
/** * Gives the ability for the 3rd party extensions to add additional white label * settings */ do_action( "{WP_2FA_PREFIX}white_labeling_settings_page_after_code_page" ); -
/** * Fires after the white label settings tab is rendered. */ do_action( "{WP_2FA_PREFIX}white_labeling_settings_page_after_default_text" ); -
/** * Fires right before the white label settings tab HTML rendering. */ do_action( "{WP_2FA_PREFIX}white_labeling_settings_page_before_default_text" ); -
/** * Extensions could change the stored settings value, based on custom / * different / specific for role settings. */ apply_filters( "{WP_2FA_PREFIX}whitelabel_settings", self::$plugin_settings[ \WP_2FA_WHITE_LABEL_SETTINGS_NAME ] ); -
/** * Filter: `Wizard Default Steps` */ apply_filters( "{WP_2FA_PREFIX}wizard_default_steps", $wizard_steps ); -
/** * Filter: wp_2fa_wizard_enabled_methods */ apply_filters( "{WP_2FA_PREFIX}wizard_enabled_methods", $enabled_methods, $user, $role ); -
/** * Filter: wp_2fa_wizard_i18n_strings */ apply_filters( "{WP_2FA_PREFIX}wizard_i18n_strings", $strings ); -
/** * Filter: wp_2fa_wizard_localized_data */ apply_filters( "{WP_2FA_PREFIX}wizard_localized_data", $data, $user, $role ); -
/** * Filter: wp_2fa_wizard_method_descriptions */ apply_filters( "{WP_2FA_PREFIX}wizard_method_descriptions", $method_descs, $user, $role ); -
/** * Filter: wp_2fa_wizard_method_hints */ apply_filters( "{WP_2FA_PREFIX}wizard_method_hints", $method_hints, $user, $role ); -
/** * Filter: wp_2fa_wizard_method_labels */ apply_filters( "{WP_2FA_PREFIX}wizard_method_labels", $method_labels, $user, $role ); -
/** * Filter: wp_2fa_wizard_reconfigure_intros */ apply_filters( "{WP_2FA_PREFIX}wizard_reconfigure_intros", $reconfigure_intros, $user, $role ); -
/** * The WooCommerce 2FA endpoint is missing on this site. Return true once the * rewrite rules have been rebuilt, so the redirect may be tried once more. */ apply_filters( "{WP_2FA_PREFIX}woocommerce_endpoint_missing", false, $url ); -
/** * Fires once a user's Wordfence enrolment has been re-created in WP 2FA. */ do_action( "{WP_2FA_PREFIX}wordfence_user_migrated", $user ); -
/** * Filters the parameters sent in the API request. */ apply_filters( 'edd_sl_plugin_updater_api_params', $api_params, self::$api_data, self::$plugin_file ); -
login_body_class
filter/** * Filters the login page body classes. */ apply_filters( 'login_body_class', $classes, $action ); -
login_enqueue_scripts
action/** * Enqueue scripts and styles for the login page. */ do_action( 'login_enqueue_scripts' ); -
login_head
action/** * Fires in the login page header after scripts are enqueued. */ do_action( 'login_head' ); -
login_header
action/** * Fires in the login page header after the body tag is opened. */ do_action( 'login_header' ); -
login_headertitle
filter/** * Filters the title attribute of the header logo above login form. */ apply_filters( 'login_headertitle', $login_header_title ); -
login_headerurl
filter/** * Filters link URL of the header logo above login form. */ apply_filters( 'login_headerurl', $login_header_url ); -
login_message
filter/** * Filters the message to display above the login form. */ apply_filters( 'login_message', $message ); -
login_messages
filter/** * Filters instructional messages displayed above the login form. */ apply_filters( 'login_messages', $messages ); -
login_title
filter/** * Filters the title tag content for login page. */ apply_filters( 'login_title', $login_title, $title ); -
lostpassword_redirect
filter/** * Filters the URL redirected to after submitting the * lostpassword/retrievepassword form. */ apply_filters( 'lostpassword_redirect', $lostpassword_redirect ); -
/** * Fires after the $edd_plugin_data is setup. */ do_action( 'post_edd_sl_plugin_updater_setup', $edd_plugin_data ); -
shake_error_codes
filter/** * Filters the error codes array for shaking the login form. */ apply_filters( 'shake_error_codes', $shake_error_codes ); -
wp_2fa_passkeys_client_ip
filter/** * Filters the client address the passkey rate limiter keys on. */ apply_filters( 'wp_2fa_passkeys_client_ip', (string) $ip ); -
/** * Filters the reverse proxies whose X-Forwarded-For header is trusted. */ apply_filters( 'wp_2fa_passkeys_trusted_proxies', array() ); -
wp_2fa_trusted_proxies
filter/** * Exact proxy IP addresses authorized to supply X-Forwarded-For. */ apply_filters( 'wp_2fa_trusted_proxies', array() ); -
wp_logout
action/** * Fires after a user is logged out. */ do_action( 'wp_logout', $user_id ); -
wp_login_failed
actiondo_action( 'wp_login_failed', $user->user_login, new \WP_Error( 'authentication_failed', __( 'Invalid verification code.', 'wp-2fa' ) ) ); -
do_action( "{WP_2FA_PREFIX}change_referer" ); -
apply_filters( "{WP_2FA_PREFIX}custom_setup_page_link", '', null ); -
{WP_2FA_PREFIX}passkey_login
actiondo_action( "{WP_2FA_PREFIX}passkey_login", $user ); -
do_action( "{WP_2FA_PREFIX}policies_new_ajax_save", \wp_unslash( $_POST ) ); -
apply_filters( "{WP_2FA_PREFIX}post_login_user_redirect", $redirect_to, $user ); -
admin_print_styles
actiondo_action( 'admin_print_styles' ); -
wp_2fa_is_challenge_request
filterapply_filters( 'wp_2fa_is_challenge_request', false ); -
apply_filters( 'wp_2fa_passkeys_rl_max_body_bytes', Passkeys_Rate_Limiter::MAX_BODY_BYTES ); -
wp_2fa_passkeys_rl_window
filterapply_filters( 'wp_2fa_passkeys_rl_window', self::DEFAULT_WINDOW, $action ); -
apply_filters( "{\WP_2FA_PREFIX}flyout_remote_config_url", 'https://melapress.com/downloads/plugins-files/wp-2fa-flyout-config.php' ); -
apply_filters( "{self::AJAX_PREFIX}provider_available", true ); -
apply_filters( "{WP_2FA_PREFIX}additional_user_types", $user_type, $user ); -
do_action( "{WP_2FA_PREFIX}after_method_is_removed", self::get_user() ); -
{WP_2FA_PREFIX}api_endpoints
filterapply_filters( "{WP_2FA_PREFIX}api_endpoints", self::$endpoints ); -
apply_filters( "{WP_2FA_PREFIX}append_to_email_and_sms_template_settings", '' ); -
apply_filters( "{WP_2FA_PREFIX}backup_methods", $output, $setup_wizard ); -
do_action( "{WP_2FA_PREFIX}before_method_been_set", self::get_enabled_method_for_user( self::get_user() ), self::get_user() ); -
do_action( "{WP_2FA_PREFIX}before_method_is_removed", self::get_enabled_method_for_user( self::get_user() ), self::get_user() ); -
do_action( "{WP_2FA_PREFIX}critical_notice" ); -
apply_filters( "{WP_2FA_PREFIX}debug_log_retention", self::LOG_RETENTION ); -
apply_filters( "{WP_2FA_PREFIX}email_code_period", $free_period ); -
do_action( "{WP_2FA_PREFIX}flyout_remote_error", $message ); -
apply_filters( "{WP_2FA_PREFIX}flyout_remote_request_args", array( 'timeout' => 30, 'redirection' => 5, 'user-agent' => 'WP-2FA-FlyOut/' . WP_2FA_VERSION, ) ); -
apply_filters( "{WP_2FA_PREFIX}flyout_remote_timeout_ttl", HOUR_IN_SECONDS ); -
apply_filters( "{WP_2FA_PREFIX}general_settings_group", Settings_Page_New::register_general_settings( array() ) ); -
apply_filters( "{WP_2FA_PREFIX}integrations_plugins_settings_group", array() ); -
apply_filters( "{WP_2FA_PREFIX}integrations_providers_settings_group", array() ); -
do_action( "{WP_2FA_PREFIX}method_has_been_removed", self::get_user() ); -
do_action( "{WP_2FA_PREFIX}method_has_been_set", $method, self::get_user() ); -
apply_filters( "{WP_2FA_PREFIX}post_login_orphan_user_redirect", $redirect_to, $user ); -
apply_filters( "{WP_2FA_PREFIX}providers_settings_labels", array() ); -
do_action( "{WP_2FA_PREFIX}remove_backup_methods_for_user", self::get_user() ); -
apply_filters( "{WP_2FA_PREFIX}reset_account_source_quota", self::RESET_ACCOUNT_SOURCE_QUOTA, $user ); -
apply_filters( "{WP_2FA_PREFIX}reset_code_quota", self::RESET_CODE_QUOTA, $user ); -
apply_filters( "{WP_2FA_PREFIX}reset_code_window", self::RESET_CODE_WINDOW ); -
apply_filters( "{WP_2FA_PREFIX}reset_source_quota", self::RESET_SOURCE_QUOTA ); -
do_action( "{WP_2FA_PREFIX}settings_new_ajax_save", \wp_unslash( $_POST ) ); -
apply_filters( "{WP_2FA_PREFIX}settings_new_validate", $out, $input ); -
apply_filters( "{WP_2FA_PREFIX}setup_page_link", self::$setup_page_link ); -
apply_filters( "{WP_2FA_PREFIX}user_enabled_backup_methods", array(), $user ); -
apply_filters( "{WP_2FA_PREFIX}user_enabled_methods", self::get_meta( self::ENABLED_METHODS_META_KEY ), $user ); -
do_action( "{WP_2FA_PREFIX}user_is_unlocked", $user_obj ); -
apply_filters( "{WP_2FA_PREFIX}validate_login_api", $valid, $user_id, $token, $provider ); -
apply_filters( "{WP_2FA_PREFIX}white_labelling_settings_group", Settings_Page_New::register_white_labelling_settings( array() ) ); -
apply_filters( 'edd_sl_api_request_verify_ssl', true, static::class ); -
do_action( "in_plugin_update_message-{$file}", $plugin, $plugin ); -
plugin_locale
filterapply_filters( 'plugin_locale', \determine_locale(), 'wp-2fa' ); -
apply_filters( 'two_factor_user_api_login_enable', false, $user_id ); -
wp_2fa_enforce_pending
actiondo_action( 'wp_2fa_enforce_pending', $user_id, $payload ); -
apply_filters( 'wp_2fa_passkeys_rl_account_max', self::DEFAULT_ACCOUNT_MAX, $action ); -
wp_2fa_passkeys_rl_max
filterapply_filters( 'wp_2fa_passkeys_rl_max', self::DEFAULT_MAX, $action ); -
wp_2fa_pending_redirect_url
filterapply_filters( 'wp_2fa_pending_redirect_url', '', $user_id, $payload ); -
wp_2fa_signin_pending_ttl
filterapply_filters( 'wp_2fa_signin_pending_ttl', 600, $user_id ); -
wp_authenticate_user
filterapply_filters( 'wp_authenticate_user', $user, '' );
Generated from WP 2FA's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: