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
280           <?php
281           /**
282            * Hidden sign-up form fields output when creating another site or user.
283            *
284            * @since MU
285            *
286            * @param string $context A string describing the steps of the sign-up process. The value can be
287            *                        'create-another-site', 'validate-user', or 'validate-site'.
288            */
289           do_action( 'signup_hidden_fields', 'create-another-site' );
290           ?>
291           <?php show_blog_form($blogname, $blog_title, $errors); ?>
292           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p>
293      </form>
294      <?php
295 }
296
297 /**
298  * Validate a new blog signup
 
Line Code
426      $errors = $filtered_results['errors'];
427
428      ?>
429
430      <h2><?php printf( __( 'Get your own %s account in seconds' ), get_current_site()->site_name ) ?></h2>
431      <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate">
432           <input type="hidden" name="stage" value="validate-user-signup" />
433           <?php
434           /** This action is documented in wp-signup.php */
435           do_action( 'signup_hidden_fields', 'validate-user' );
436           ?>
437           <?php show_user_form($user_name, $user_email, $errors); ?>
438
439           <p>
440           <?php if ( $active_signup == 'blog' ) { ?>
441                <input id="signupblog" type="hidden" name="signup_for" value="blog" />
442           <?php } elseif ( $active_signup == 'user' ) { ?>
443                <input id="signupblog" type="hidden" name="signup_for" value="user" />
444           <?php } else { ?>
 
Line Code
553      if ( empty($blogname) )
554           $blogname = $user_name;
555      ?>
556      <form id="setupform" method="post" action="wp-signup.php">
557           <input type="hidden" name="stage" value="validate-blog-signup" />
558           <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" />
559           <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" />
560           <?php
561           /** This action is documented in wp-signup.php */
562           do_action( 'signup_hidden_fields', 'validate-site' );
563           ?>
564           <?php show_blog_form($blogname, $blog_title, $errors); ?>
565           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p>
566      </form>
567      <?php
568 }
569
570 /**
571  * Validate new site signup