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 |
|---|---|
| 495 | * @since 3.0.0 |
| 496 | * |
| 497 | * @param array $meta { |
| 498 | * An array of default site meta variables. |
| 499 | * |
| 500 | * @type int $lang_id The language ID. |
| 501 | * @type int $blog_public Whether search engines should be discouraged from indexing the site. 1 for true, 0 for false. |
| 502 | * } |
| 503 | */ |
| 504 | $meta = apply_filters( 'add_signup_meta', $meta_defaults ); |
| 505 | |
| 506 | $blog_id = wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, get_current_network_id() ); |
| 507 | |
| 508 | if ( is_wp_error( $blog_id ) ) { |
| 509 | return false; |
| 510 | } |
| 511 | |
| 512 | confirm_another_blog_signup( $domain, $path, $blog_title, $current_user->user_login, $current_user->user_email, $meta, $blog_id ); |
| 513 | return true; |
| Line | Code |
| 680 | return false; |
| 681 | } |
| 682 | |
| 683 | if ( 'blog' === $_POST['signup_for'] ) { |
| 684 | signup_blog( $user_name, $user_email ); |
| 685 | return false; |
| 686 | } |
| 687 | |
| 688 | /** This filter is documented in wp-signup.php */ |
| 689 | wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) ); |
| 690 | |
| 691 | confirm_user_signup( $user_name, $user_email ); |
| 692 | return true; |
| 693 | } |
| 694 | |
| 695 | /** |
| 696 | * Shows a message confirming that the new user has been registered and is awaiting activation. |
| 697 | * |
| 698 | * @since MU (3.0.0) |
| Line | Code |
| 832 | $language = wp_unslash( sanitize_text_field( $_POST['WPLANG'] ) ); |
| 833 | |
| 834 | if ( $language ) { |
| 835 | $signup_meta['WPLANG'] = $language; |
| 836 | } |
| 837 | } |
| 838 | } |
| 839 | |
| 840 | /** This filter is documented in wp-signup.php */ |
| 841 | $meta = apply_filters( 'add_signup_meta', $signup_meta ); |
| 842 | |
| 843 | wpmu_signup_blog( $domain, $path, $blog_title, $user_name, $user_email, $meta ); |
| 844 | confirm_blog_signup( $domain, $path, $blog_title, $user_name, $user_email, $meta ); |
| 845 | return true; |
| 846 | } |
| 847 | |
| 848 | /** |
| 849 | * Shows a message confirming that the new site has been registered and is awaiting activation. |
| 850 | * |