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 |
---|---|
285 | <?php |
286 | /** |
287 | * Hidden sign-up form fields output when creating another site or user. |
288 | * |
289 | * @since MU |
290 | * |
291 | * @param string $context A string describing the steps of the sign-up process. The value can be |
292 | * 'create-another-site', 'validate-user', or 'validate-site'. |
293 | */ |
294 | do_action( 'signup_hidden_fields', 'create-another-site' ); |
295 | ?> |
296 | <?php show_blog_form($blogname, $blog_title, $errors); ?> |
297 | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p> |
298 | </form> |
299 | <?php |
300 | } |
301 |
|
302 | /** |
303 | * Validate a new blog signup |
Line | Code |
428 | $errors = $filtered_results['errors']; |
429 |
|
430 | ?> |
431 |
|
432 | <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2> |
433 | <form id="setupform" method="post" action="wp-signup.php"> |
434 | <input type="hidden" name="stage" value="validate-user-signup" /> |
435 | <?php |
436 | /** This action is documented in wp-signup.php */ |
437 | do_action( 'signup_hidden_fields', 'validate-user' ); |
438 | ?> |
439 | <?php show_user_form($user_name, $user_email, $errors); ?> |
440 |
|
441 | <p> |
442 | <?php if ( $active_signup == 'blog' ) { ?> |
443 | <input id="signupblog" type="hidden" name="signup_for" value="blog" /> |
444 | <?php } elseif ( $active_signup == 'user' ) { ?> |
445 | <input id="signupblog" type="hidden" name="signup_for" value="user" /> |
446 | <?php } else { ?> |
Line | Code |
558 | if ( empty($blogname) ) |
559 | $blogname = $user_name; |
560 | ?> |
561 | <form id="setupform" method="post" action="wp-signup.php"> |
562 | <input type="hidden" name="stage" value="validate-blog-signup" /> |
563 | <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" /> |
564 | <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" /> |
565 | <?php |
566 | /** This action is documented in wp-signup.php */ |
567 | do_action( 'signup_hidden_fields', 'validate-site' ); |
568 | ?> |
569 | <?php show_blog_form($blogname, $blog_title, $errors); ?> |
570 | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p> |
571 | </form> |
572 | <?php |
573 | } |
574 |
|
575 | /** |
576 | * Validate new site signup |