WordPress at Your Fingertips
action is not described

login_form_(action) action-hook . WP 2.8.0

Fires before a specified login form action.

The dynamic portion of the hook name, $action, refers to the action that brought the visitor to the login form.

Possible hook names include:

  • 'login_form_checkemail'
  • 'login_form_confirm_admin_email'
  • 'login_form_confirmaction'
  • 'login_form_entered_recovery_mode'
  • 'login_form_login'
  • 'login_form_logout'
  • 'login_form_lostpassword'
  • 'login_form_postpass'
  • 'login_form_register'
  • 'login_form_resetpass'
  • 'login_form_retrievepassword'
  • 'login_form_rp'

Usage

add_action( 'login_form_(action)', 'action_function_name_7493' );
function action_function_name_7493(){
	// action...
}

Changelog

Since 2.8.0 Introduced.

Where the hook is called

In file: /wp-login.php
login_form_(action)
wp-login.php 452
do_action( "login_form_{$action}" );

Where in WP core the hook is used WordPress

wp-includes/class-wp-recovery-mode.php 95
add_action( 'login_form_' . self::EXIT_ACTION, array( $this, 'handle_exit_recovery_mode' ) );