register_form WordPress Action Hook

The register_form hook is used to display the registration form for a new user. This hook is used to add fields to the form, such as the user's first and last name, or to add extra validation to the form.

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.

Top ↑

Source

File: wp-login.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.