Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: add_signup_meta

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

This hook occurs 3 times in this file.

Line Code
414       * @since 3.0.0
415       *
416       * @param array $meta {
417       *     An array of default site meta variables.
418       *
419       *     @type int $lang_id     The language ID.
420       *     @type int $blog_public Whether search engines should be discouraged from indexing the site. 1 for true, 0 for false.
421       * }
422       */
423      $meta = apply_filters( 'add_signup_meta', $meta_defaults );
424
425      $blog_id = wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, $wpdb->siteid );
426
427      if ( is_wp_error( $blog_id ) ) {
428           return false;
429      }
430
431      confirm_another_blog_signup( $domain, $path, $blog_title, $current_user->user_login, $current_user->user_email, $meta, $blog_id );
432      return true;
 
Line Code
579           return false;
580      }
581
582      if ( 'blog' == $_POST['signup_for'] ) {
583           signup_blog($user_name, $user_email);
584           return false;
585      }
586
587      /** This filter is documented in wp-signup.php */
588      wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) );
589
590      confirm_user_signup($user_name, $user_email);
591      return true;
592 }
593
594 /**
595  * New user signup confirmation
596  *
597  * @since MU
 
Line Code
719
720                if ( $language ) {
721                     $signup_meta['WPLANG'] = $language;
722                }
723           }
724
725      }
726
727      /** This filter is documented in wp-signup.php */
728      $meta = apply_filters( 'add_signup_meta', $signup_meta );
729
730      wpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta);
731      confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_email, $meta);
732      return true;
733 }
734
735 /**
736  * New site signup confirmation
737  *