Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: signup_blog_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
711       *     An array of default site creation variables.
712       *
713       *     @type string   $user_name  The user username.
714       *     @type string   $user_email The user email address.
715       *     @type string   $blogname   The blogname.
716       *     @type string   $blog_title The title of the site.
717       *     @type WP_Error $errors     A WP_Error object with possible errors relevant to new site creation variables.
718       * }
719       */
720      $filtered_results = apply_filters( 'signup_blog_init', $signup_blog_defaults );
721
722      $user_name  = $filtered_results['user_name'];
723      $user_email = $filtered_results['user_email'];
724      $blogname   = $filtered_results['blogname'];
725      $blog_title = $filtered_results['blog_title'];
726      $errors     = $filtered_results['errors'];
727
728      if ( empty( $blogname ) ) {
729           $blogname = $user_name;