W3cubDocs

/WordPress

apply_filters( 'signup_user_init', array $signup_user_defaults )

Filters the default user variables used on the user sign-up form.

Parameters

$signup_user_defaults

(array) An array of default user variables.

  • 'user_name'
    (string) The user username.
  • 'user_email'
    (string) The user email address.
  • 'errors'
    (WP_Error) A WP_Error object with possible errors relevant to the sign-up user.

Source

File: wp-signup.php

View on Trac

Changelog

Version Description
3.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/signup_user_init