Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: signup_user_init

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
517       *
518       * @param array $signup_user_defaults {
519       *     An array of default user variables.
520       *
521       *     @type string   $user_name  The user username.
522       *     @type string   $user_email The user email address.
523       *     @type WP_Error $errors     A WP_Error object with possible errors relevant to the sign-up user.
524       * }
525       */
526      $filtered_results = apply_filters( 'signup_user_init', $signup_user_defaults );
527      $user_name = $filtered_results['user_name'];
528      $user_email = $filtered_results['user_email'];
529      $errors = $filtered_results['errors'];
530
531      ?>
532
533      <h2><?php
534           /* translators: %s: name of the network */
535           printf( __( 'Get your own %s account in seconds' ), get_current_site()->site_name );