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
407           <?php
408           /**
409            * Fires when hidden sign-up form fields output when creating another site or user.
410            *
411            * @since MU (3.0.0)
412            *
413            * @param string $context A string describing the steps of the sign-up process. The value can be
414            *                        'create-another-site', 'validate-user', or 'validate-site'.
415            */
416           do_action( 'signup_hidden_fields', 'create-another-site' );
417           ?>
418           <?php show_blog_form( $blogname, $blog_title, $errors ); ?>
419           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ); ?>" /></p>
420      </form>
421      <?php
422 }
423
424 /**
425  * Validates a new site sign-up for an existing user.
 
Line Code
627      <?php
628           /* translators: %s: Name of the network. */
629           printf( __( 'Get your own %s account in seconds' ), get_network()->site_name );
630      ?>
631      </h2>
632      <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate">
633           <input type="hidden" name="stage" value="validate-user-signup" />
634           <?php
635           /** This action is documented in wp-signup.php */
636           do_action( 'signup_hidden_fields', 'validate-user' );
637           ?>
638           <?php show_user_form( $user_name, $user_email, $errors ); ?>
639
640           <?php if ( 'blog' === $active_signup ) : ?>
641                <input id="signupblog" type="hidden" name="signup_for" value="blog" />
642           <?php elseif ( 'user' === $active_signup ) : ?>
643                <input id="signupblog" type="hidden" name="signup_for" value="user" />
644           <?php else : ?>
645                <fieldset class="signup-options">
 
Line Code
772           $blogname = $user_name;
773      }
774      ?>
775      <form id="setupform" method="post" action="wp-signup.php">
776           <input type="hidden" name="stage" value="validate-blog-signup" />
777           <input type="hidden" name="user_name" value="<?php echo esc_attr( $user_name ); ?>" />
778           <input type="hidden" name="user_email" value="<?php echo esc_attr( $user_email ); ?>" />
779           <?php
780           /** This action is documented in wp-signup.php */
781           do_action( 'signup_hidden_fields', 'validate-site' );
782           ?>
783           <?php show_blog_form( $blogname, $blog_title, $errors ); ?>
784           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Sign up' ); ?>" /></p>
785      </form>
786      <?php
787 }
788
789 /**
790  * Validates new site signup.