do_action( 'login_form' )
Fires following the ‘Password’ field in the login form.
More Information
It can be used to customize the built-in WordPress login form. Use in conjunction with ‘login_head‘ (for validation).
Source
File: wp-login.php
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
This example demonstrates how to add a new field to the login form. Keep in mind that this won’t be saved automatically. You will still need to set up validation rules and manually handle saving of the additional form fields.
Expand full source codeCollapse full source code
Example migrated from Codex:
The following example demonstrates how to translate the login form, page, fields or labels. Choose the codes/blocks for translation accurately, otherwise the above function may change other parts of the login page.
Example migrated from Codex: