signup_extra_fields
Fires at the end of the new user account registration form.
Usage
add_action( 'signup_extra_fields', 'wp_kama_signup_extra_fields_action' ); /** * Function for `signup_extra_fields` action-hook. * * @param WP_Error $errors A WP_Error object containing 'user_name' or 'user_email' errors. * * @return void */ function wp_kama_signup_extra_fields_action( $errors ){ // action... }
- $errors(WP_Error)
- A WP_Error object containing 'user_name' or 'user_email' errors.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
signup_extra_fields
wp-signup.php 308
do_action( 'signup_extra_fields', $errors );