signup_extra_fields
Action HookDescription
Fires at the end of the new user account registration form.Hook Information
File Location |
wp-signup.php
View on GitHub
|
Hook Type | Action |
Line Number | 315 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Error
|
$errors
|
A WP_Error object containing 'user_name' or 'user_email' errors. |
Usage Examples
Basic Usage
<?php
// Hook into signup_extra_fields
add_action('signup_extra_fields', 'my_custom_function', 10, 1);
function my_custom_function($errors) {
// Your custom code here
}
Source Code Context
wp-signup.php:315
- How this hook is used in WordPress core
<?php
310 *
311 * @since 3.0.0
312 *
313 * @param WP_Error $errors A WP_Error object containing 'user_name' or 'user_email' errors.
314 */
315 do_action( 'signup_extra_fields', $errors );
316 }
317
318 /**
319 * Validates user sign-up name and email.
320 *
PHP Documentation
<?php
/**
* Fires at the end of the new user account registration form.
*
* @since 3.0.0
*
* @param WP_Error $errors A WP_Error object containing 'user_name' or 'user_email' errors.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-signup.php
Related Hooks
Related hooks will be displayed here in future updates.