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