WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 3 times in this file.
Line | Code |
---|---|
377 | <?php |
378 | /** |
379 | * Hidden sign-up form fields output when creating another site or user. |
380 | * |
381 | * @since MU (3.0.0) |
382 | * |
383 | * @param string $context A string describing the steps of the sign-up process. The value can be |
384 | * 'create-another-site', 'validate-user', or 'validate-site'. |
385 | */ |
386 | do_action( 'signup_hidden_fields', 'create-another-site' ); |
387 | ?> |
388 | <?php show_blog_form( $blogname, $blog_title, $errors ); ?> |
389 | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ); ?>" /></p> |
390 | </form> |
391 | <?php |
392 | } |
393 |
|
394 | /** |
395 | * Validate a new site signup for an existing user. |
Line | Code |
594 | <?php |
595 | /* translators: %s: Name of the network. */ |
596 | printf( __( 'Get your own %s account in seconds' ), get_network()->site_name ); |
597 | ?> |
598 | </h2> |
599 | <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate"> |
600 | <input type="hidden" name="stage" value="validate-user-signup" /> |
601 | <?php |
602 | /** This action is documented in wp-signup.php */ |
603 | do_action( 'signup_hidden_fields', 'validate-user' ); |
604 | ?> |
605 | <?php show_user_form( $user_name, $user_email, $errors ); ?> |
606 |
|
607 | <p> |
608 | <?php if ( 'blog' === $active_signup ) { ?> |
609 | <input id="signupblog" type="hidden" name="signup_for" value="blog" /> |
610 | <?php } elseif ( 'user' === $active_signup ) { ?> |
611 | <input id="signupblog" type="hidden" name="signup_for" value="user" /> |
612 | <?php } else { ?> |
Line | Code |
733 | $blogname = $user_name; |
734 | } |
735 | ?> |
736 | <form id="setupform" method="post" action="wp-signup.php"> |
737 | <input type="hidden" name="stage" value="validate-blog-signup" /> |
738 | <input type="hidden" name="user_name" value="<?php echo esc_attr( $user_name ); ?>" /> |
739 | <input type="hidden" name="user_email" value="<?php echo esc_attr( $user_email ); ?>" /> |
740 | <?php |
741 | /** This action is documented in wp-signup.php */ |
742 | do_action( 'signup_hidden_fields', 'validate-site' ); |
743 | ?> |
744 | <?php show_blog_form( $blogname, $blog_title, $errors ); ?> |
745 | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Signup' ); ?>" /></p> |
746 | </form> |
747 | <?php |
748 | } |
749 |
|
750 | /** |
751 | * Validate new site signup |