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