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