do_action( 'register_form' )
Fires following the ‘Email’ field in the user registration form.
More Information
- Use in conjunction with ‘
registration_errors
‘ (for validation) and ‘register_post
‘ (save extra data) when customizing registration. - WordPress MS Note: For WordPress MS (Multi-Site), use the ‘
signup_header
‘ action to redirect users away from the signup.
Source
File: wp-login.php
.
View all references
do_action( 'register_form' );
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
This example demonstrates how to add a new field to the registration 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.
To modify or translate the registration form , page or fieldnames, you can use the following function:
Choose the codes/blocks for translation accurately, otherwise the above function may change other parts of the registration page.