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
331           <?php
332           /**
333            * Hidden sign-up form fields output when creating another site or user.
334            *
335            * @since MU
336            *
337            * @param string $context A string describing the steps of the sign-up process. The value can be
338            *                        'create-another-site', 'validate-user', or 'validate-site'.
339            */
340           do_action( 'signup_hidden_fields', 'create-another-site' );
341           ?>
342           <?php show_blog_form($blogname, $blog_title, $errors); ?>
343           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p>
344      </form>
345      <?php
346 }
347
348 /**
349  * Validate a new site signup.
 
Line Code
532
533      <h2><?php
534           /* translators: %s: name of the network */
535           printf( __( 'Get your own %s account in seconds' ), get_network()->site_name );
536      ?></h2>
537      <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate">
538           <input type="hidden" name="stage" value="validate-user-signup" />
539           <?php
540           /** This action is documented in wp-signup.php */
541           do_action( 'signup_hidden_fields', 'validate-user' );
542           ?>
543           <?php show_user_form($user_name, $user_email, $errors); ?>
544
545           <p>
546           <?php if ( $active_signup == 'blog' ) { ?>
547                <input id="signupblog" type="hidden" name="signup_for" value="blog" />
548           <?php } elseif ( $active_signup == 'user' ) { ?>
549                <input id="signupblog" type="hidden" name="signup_for" value="user" />
550           <?php } else { ?>
 
Line Code
661      if ( empty($blogname) )
662           $blogname = $user_name;
663      ?>
664      <form id="setupform" method="post" action="wp-signup.php">
665           <input type="hidden" name="stage" value="validate-blog-signup" />
666           <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" />
667           <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" />
668           <?php
669           /** This action is documented in wp-signup.php */
670           do_action( 'signup_hidden_fields', 'validate-site' );
671           ?>
672           <?php show_blog_form($blogname, $blog_title, $errors); ?>
673           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p>
674      </form>
675      <?php
676 }
677
678 /**
679  * Validate new site signup