wphooks.info - login_init

login_init

(trunk - 5.0-alpha-42490)

The hook occurs in the following file:

/wp-login.php:
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
}

$lang            = ! empty( $_GET['wp_lang'] ) ? sanitize_text_field( $_GET['wp_lang'] ) : '';
$switched_locale = switch_to_locale( $lang );

/**
 * Fires when the login form is initialized.
 *
 * @since 3.2.0
 */
do_action( 'login_init' );

/**
 * 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. Actions include 'postpass',
 * 'logout', 'lostpassword', etc.
 *
 * @since 2.8.0