apply_filters( 'signup_user_init', array $signup_user_defaults )
- Since
- 3.0.0
Filters the default user variables used on the user sign-up form.
Compatibility
- WordPress
- since 3.0.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$signup_user_defaultsarray- { An array of default user variables.
@type string $user_name The user username.
@type string $user_email The user email address.
@type WP_Error $errors A WP_Error object with possible errors relevant to the sign-up user.
}$user_namestringThe user username.$user_emailstringThe user email address.$errorsWP_ErrorA WP_Error object with possible errors relevant to the sign-up user.
Where this hook fires · 1
wp-signup.php:612signup_user()
Source code
* * @type string $user_name The user username. * @type string $user_email The user email address. * @type WP_Error $errors A WP_Error object with possible errors relevant to the sign-up user. * } */ $filtered_results = apply_filters( 'signup_user_init', $signup_user_defaults ); $user_name = $filtered_results['user_name']; $user_email = $filtered_results['user_email']; $errors = $filtered_results['errors']; ?> Changelog
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.