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
373           <?php
374           /**
375            * Hidden sign-up form fields output when creating another site or user.
376            *
377            * @since MU (3.0.0)
378            *
379            * @param string $context A string describing the steps of the sign-up process. The value can be
380            *                        'create-another-site', 'validate-user', or 'validate-site'.
381            */
382           do_action( 'signup_hidden_fields', 'create-another-site' );
383           ?>
384           <?php show_blog_form( $blogname, $blog_title, $errors ); ?>
385           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ); ?>" /></p>
386      </form>
387      <?php
388 }
389
390 /**
391  * Validate a new site signup for an existing user.
 
Line Code
590      <?php
591           /* translators: %s: name of the network */
592           printf( __( 'Get your own %s account in seconds' ), get_network()->site_name );
593      ?>
594      </h2>
595      <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate">
596           <input type="hidden" name="stage" value="validate-user-signup" />
597           <?php
598           /** This action is documented in wp-signup.php */
599           do_action( 'signup_hidden_fields', 'validate-user' );
600           ?>
601           <?php show_user_form( $user_name, $user_email, $errors ); ?>
602
603           <p>
604           <?php if ( 'blog' === $active_signup ) { ?>
605                <input id="signupblog" type="hidden" name="signup_for" value="blog" />
606           <?php } elseif ( 'user' === $active_signup ) { ?>
607                <input id="signupblog" type="hidden" name="signup_for" value="user" />
608           <?php } else { ?>
 
Line Code
729           $blogname = $user_name;
730      }
731      ?>
732      <form id="setupform" method="post" action="wp-signup.php">
733           <input type="hidden" name="stage" value="validate-blog-signup" />
734           <input type="hidden" name="user_name" value="<?php echo esc_attr( $user_name ); ?>" />
735           <input type="hidden" name="user_email" value="<?php echo esc_attr( $user_email ); ?>" />
736           <?php
737           /** This action is documented in wp-signup.php */
738           do_action( 'signup_hidden_fields', 'validate-site' );
739           ?>
740           <?php show_blog_form( $blogname, $blog_title, $errors ); ?>
741           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Signup' ); ?>" /></p>
742      </form>
743      <?php
744 }
745
746 /**
747  * Validate new site signup