WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 3 times in this file.
Line | Code |
---|---|
350 | * @since 3.0.0 |
351 | * |
352 | * @param array $meta { |
353 | * An array of default site meta variables. |
354 | * |
355 | * @type int $lang_id The language ID. |
356 | * @type int $blog_public Whether search engines should be discouraged from indexing the site. 1 for true, 0 for false. |
357 | * } |
358 | */ |
359 | $meta = apply_filters( 'add_signup_meta', $meta_defaults ); |
360 |
|
361 | wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, $wpdb->siteid ); |
362 | confirm_another_blog_signup($domain, $path, $blog_title, $current_user->user_login, $current_user->user_email, $meta); |
363 | return true; |
364 | } |
365 |
|
366 | /** |
367 | * Confirm a new site signup |
368 | * |
Line | Code |
483 | return false; |
484 | } |
485 |
|
486 | if ( 'blog' == $_POST['signup_for'] ) { |
487 | signup_blog($user_name, $user_email); |
488 | return false; |
489 | } |
490 |
|
491 | /** This filter is documented in wp-signup.php */ |
492 | wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) ); |
493 |
|
494 | confirm_user_signup($user_name, $user_email); |
495 | return true; |
496 | } |
497 |
|
498 | /** |
499 | * New user signup confirmation |
500 | * |
501 | * @since MU |
Line | Code |
613 | if ( $errors->get_error_code() ) { |
614 | signup_blog($user_name, $user_email, $blogname, $blog_title, $errors); |
615 | return false; |
616 | } |
617 |
|
618 | $public = (int) $_POST['blog_public']; |
619 | $signup_meta = array ('lang_id' => 1, 'public' => $public); |
620 |
|
621 | /** This filter is documented in wp-signup.php */ |
622 | $meta = apply_filters( 'add_signup_meta', $signup_meta ); |
623 |
|
624 | wpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta); |
625 | confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_email, $meta); |
626 | return true; |
627 | } |
628 |
|
629 | /** |
630 | * New site signup confirmation |
631 | * |