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
266      extract($result);
267
268      if ( $errors->get_error_code() ) {
269           signup_another_blog($blogname, $blog_title, $errors);
270           return false;
271      }
272
273      $public = (int) $_POST['blog_public'];
274      $meta = apply_filters( 'signup_create_blog_meta', array( 'lang_id' => 1, 'public' => $public ) ); // deprecated
275      $meta = apply_filters( 'add_signup_meta', $meta );
276
277      wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, $wpdb->siteid );
278      confirm_another_blog_signup($domain, $path, $blog_title, $current_user->user_login, $current_user->user_email, $meta);
279      return true;
280 }
281
282 /**
283  * Confirm a new site signup
284  *
 
Line Code
370           signup_user($user_name, $user_email, $errors);
371           return false;
372      }
373
374      if ( 'blog' == $_POST['signup_for'] ) {
375           signup_blog($user_name, $user_email);
376           return false;
377      }
378
379      wpmu_signup_user($user_name, $user_email, apply_filters( 'add_signup_meta', array() ) );
380
381      confirm_user_signup($user_name, $user_email);
382      return true;
383 }
384
385 /**
386  * New user signup confirmation
387  *
388  * @since MU
 
Line Code
465      extract($result);
466
467      if ( $errors->get_error_code() ) {
468           signup_blog($user_name, $user_email, $blogname, $blog_title, $errors);
469           return false;
470      }
471
472      $public = (int) $_POST['blog_public'];
473      $meta = array ('lang_id' => 1, 'public' => $public);
474      $meta = apply_filters( 'add_signup_meta', $meta );
475
476      wpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta);
477      confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_email, $meta);
478      return true;
479 }
480
481 /**
482  * New site signup confirmation
483  *