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.
Line | Code |
---|---|
715 | * An array of default site creation variables. |
716 | * |
717 | * @type string $user_name The user username. |
718 | * @type string $user_email The user email address. |
719 | * @type string $blogname The blogname. |
720 | * @type string $blog_title The title of the site. |
721 | * @type WP_Error $errors A WP_Error object with possible errors relevant to new site creation variables. |
722 | * } |
723 | */ |
724 | $filtered_results = apply_filters( 'signup_blog_init', $signup_blog_defaults ); |
725 |
|
726 | $user_name = $filtered_results['user_name']; |
727 | $user_email = $filtered_results['user_email']; |
728 | $blogname = $filtered_results['blogname']; |
729 | $blog_title = $filtered_results['blog_title']; |
730 | $errors = $filtered_results['errors']; |
731 |
|
732 | if ( empty( $blogname ) ) { |
733 | $blogname = $user_name; |