login_form
Action HookDescription
Fires following the 'Password' field in the login form.Hook Information
| File Location |
wp-login.php
View on GitHub
|
| Hook Type | Action |
| Line Number | 1534 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into login_form
add_action('login_form', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-login.php:1534
- How this hook is used in WordPress core
<?php
1529 /**
1530 * Fires following the 'Password' field in the login form.
1531 *
1532 * @since 2.1.0
1533 */
1534 do_action( 'login_form' );
1535
1536 ?>
1537 <p class="forgetmenot"><input name="rememberme" type="checkbox" id="rememberme" value="forever" <?php checked( $rememberme ); ?> /> <label for="rememberme"><?php esc_html_e( 'Remember Me' ); ?></label></p>
1538 <p class="submit">
1539 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Log In' ); ?>" />
PHP Documentation
<?php
/**
* Fires following the 'Password' field in the login form.
*
* @since 2.1.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-login.php
Related Hooks
Related hooks will be displayed here in future updates.