Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: signup_hidden_fields

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

This hook occurs 3 times in this file.

Line Code
284           <?php
285           /**
286            * Hidden sign-up form fields output when creating another site or user.
287            *
288            * @since MU
289            *
290            * @param string $context A string describing the steps of the sign-up process. The value can be
291            *                        'create-another-site', 'validate-user', or 'validate-site'.
292            */
293           do_action( 'signup_hidden_fields', 'create-another-site' );
294           ?>
295           <?php show_blog_form($blogname, $blog_title, $errors); ?>
296           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p>
297      </form>
298      <?php
299 }
300
301 /**
302  * Validate a new blog signup
 
Line Code
433      $errors = $filtered_results['errors'];
434
435      ?>
436
437      <h2><?php printf( __( 'Get your own %s account in seconds' ), get_current_site()->site_name ) ?></h2>
438      <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate">
439           <input type="hidden" name="stage" value="validate-user-signup" />
440           <?php
441           /** This action is documented in wp-signup.php */
442           do_action( 'signup_hidden_fields', 'validate-user' );
443           ?>
444           <?php show_user_form($user_name, $user_email, $errors); ?>
445
446           <p>
447           <?php if ( $active_signup == 'blog' ) { ?>
448                <input id="signupblog" type="hidden" name="signup_for" value="blog" />
449           <?php } elseif ( $active_signup == 'user' ) { ?>
450                <input id="signupblog" type="hidden" name="signup_for" value="user" />
451           <?php } else { ?>
 
Line Code
565      if ( empty($blogname) )
566           $blogname = $user_name;
567      ?>
568      <form id="setupform" method="post" action="wp-signup.php">
569           <input type="hidden" name="stage" value="validate-blog-signup" />
570           <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" />
571           <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" />
572           <?php
573           /** This action is documented in wp-signup.php */
574           do_action( 'signup_hidden_fields', 'validate-site' );
575           ?>
576           <?php show_blog_form($blogname, $blog_title, $errors); ?>
577           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p>
578      </form>
579      <?php
580 }
581
582 /**
583  * Validate new site signup