signup_user_init WordPress Filter Hook

The signup_user_init hook is used to initialize the user during the user signup process. This hook is called before the user is created and allows you to modify the user data.

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.


Top ↑

Source

File: wp-signup.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.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.