Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: signup_another_blog_init

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
281       *
282       * @param array $signup_defaults {
283       *     An array of default site sign-up variables.
284       *
285       *     @type string $blogname   The site blogname.
286       *     @type string $blog_title The site title.
287       *     @type array  $errors     An array possibly containing 'blogname' or 'blog_title' errors.
288       * }
289       */
290      $filtered_results = apply_filters( 'signup_another_blog_init', $signup_defaults );
291
292      $blogname = $filtered_results['blogname'];
293      $blog_title = $filtered_results['blog_title'];
294      $errors = $filtered_results['errors'];
295
296      echo '<h2>' . sprintf( __( 'Get <em>another</em> %s site in seconds' ), get_current_site()->site_name ) . '</h2>';
297
298      if ( $errors->get_error_code() ) {
299           echo '<p>' . __( 'There was a problem, please correct the form below and try again.' ) . '</p>';