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 |
|---|---|
| 349 | * |
| 350 | * @param array $signup_defaults { |
| 351 | * An array of default site sign-up variables. |
| 352 | * |
| 353 | * @type string $blogname The site blogname. |
| 354 | * @type string $blog_title The site title. |
| 355 | * @type WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors. |
| 356 | * } |
| 357 | */ |
| 358 | $filtered_results = apply_filters( 'signup_another_blog_init', $signup_defaults ); |
| 359 | |
| 360 | $blogname = $filtered_results['blogname']; |
| 361 | $blog_title = $filtered_results['blog_title']; |
| 362 | $errors = $filtered_results['errors']; |
| 363 | |
| 364 | /* translators: %s: Network title. */ |
| 365 | echo '<h2>' . sprintf( __( 'Get <em>another</em> %s site in seconds' ), get_network()->site_name ) . '</h2>'; |
| 366 | |
| 367 | if ( $errors->has_errors() ) { |