Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/wp-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -1507,9 +1507,24 @@ function wp_login_viewport_meta() {
}

wp_enqueue_script( 'user-profile' );

/**
* Fires before the login form.
*
* @since 6.9.0
*/
do_action( 'login_form_before' );
?>

<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
<?php
/**
* Fires at the top of the login form.
*
* @since 6.9.0
*/
do_action( 'login_form_top' );
?>
<p>
<label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
<input type="text" name="log" id="user_login"<?php echo $aria_describedby; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" required="required" />
Expand All @@ -1530,6 +1545,9 @@ function wp_login_viewport_meta() {
* Fires following the 'Password' field in the login form.
*
* @since 2.1.0
*
* @see 'login_form_top' Fires at the top of the login form.
* @see 'login_form_before' Fires before the login form.
*/
do_action( 'login_form' );

Expand Down
Loading