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 |
---|---|
401 | * @since 3.0.0 |
402 | * |
403 | * @param array $meta { |
404 | * An array of default site meta variables. |
405 | * |
406 | * @type int $lang_id The language ID. |
407 | * @type int $blog_public Whether search engines should be discouraged from indexing the site. 1 for true, 0 for false. |
408 | * } |
409 | */ |
410 | $meta = apply_filters( 'add_signup_meta', $meta_defaults ); |
411 |
|
412 | $blog_id = wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, $wpdb->siteid ); |
413 |
|
414 | if ( is_wp_error( $blog_id ) ) { |
415 | return false; |
416 | } |
417 |
|
418 | confirm_another_blog_signup( $domain, $path, $blog_title, $current_user->user_login, $current_user->user_email, $meta, $blog_id ); |
419 | return true; |
Line | Code |
559 | return false; |
560 | } |
561 |
|
562 | if ( 'blog' == $_POST['signup_for'] ) { |
563 | signup_blog($user_name, $user_email); |
564 | return false; |
565 | } |
566 |
|
567 | /** This filter is documented in wp-signup.php */ |
568 | wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) ); |
569 |
|
570 | confirm_user_signup($user_name, $user_email); |
571 | return true; |
572 | } |
573 |
|
574 | /** |
575 | * New user signup confirmation |
576 | * |
577 | * @since MU |
Line | Code |
699 |
|
700 | if ( $language ) { |
701 | $signup_meta['WPLANG'] = $language; |
702 | } |
703 | } |
704 |
|
705 | } |
706 |
|
707 | /** This filter is documented in wp-signup.php */ |
708 | $meta = apply_filters( 'add_signup_meta', $signup_meta ); |
709 |
|
710 | wpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta); |
711 | confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_email, $meta); |
712 | return true; |
713 | } |
714 |
|
715 | /** |
716 | * New site signup confirmation |
717 | * |