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
320           <?php
321           /**
322            * Hidden sign-up form fields output when creating another site or user.
323            *
324            * @since MU
325            *
326            * @param string $context A string describing the steps of the sign-up process. The value can be
327            *                        'create-another-site', 'validate-user', or 'validate-site'.
328            */
329           do_action( 'signup_hidden_fields', 'create-another-site' );
330           ?>
331           <?php show_blog_form($blogname, $blog_title, $errors); ?>
332           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p>
333      </form>
334      <?php
335 }
336
337 /**
338  * Validate a new site signup.
 
Line Code
512      $errors = $filtered_results['errors'];
513
514      ?>
515
516      <h2><?php printf( __( 'Get your own %s account in seconds' ), get_current_site()->site_name ) ?></h2>
517      <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate">
518           <input type="hidden" name="stage" value="validate-user-signup" />
519           <?php
520           /** This action is documented in wp-signup.php */
521           do_action( 'signup_hidden_fields', 'validate-user' );
522           ?>
523           <?php show_user_form($user_name, $user_email, $errors); ?>
524
525           <p>
526           <?php if ( $active_signup == 'blog' ) { ?>
527                <input id="signupblog" type="hidden" name="signup_for" value="blog" />
528           <?php } elseif ( $active_signup == 'user' ) { ?>
529                <input id="signupblog" type="hidden" name="signup_for" value="user" />
530           <?php } else { ?>
 
Line Code
641      if ( empty($blogname) )
642           $blogname = $user_name;
643      ?>
644      <form id="setupform" method="post" action="wp-signup.php">
645           <input type="hidden" name="stage" value="validate-blog-signup" />
646           <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" />
647           <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" />
648           <?php
649           /** This action is documented in wp-signup.php */
650           do_action( 'signup_hidden_fields', 'validate-site' );
651           ?>
652           <?php show_blog_form($blogname, $blog_title, $errors); ?>
653           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p>
654      </form>
655      <?php
656 }
657
658 /**
659  * Validate new site signup