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
233                          $home_url = get_home_url( $blog->userblog_id );
234                          echo '<li><a href="' . esc_url( $home_url ) . '">' . $home_url . '</a></li>';
235                     } ?>
236                </ul>
237      <?php } ?>
238
239      <p><?php _e( 'If you&#8217;re not going to use a great site domain, leave it for a new user. Now have at it!' ) ?></p>
240      <form id="setupform" method="post" action="wp-signup.php">
241           <input type="hidden" name="stage" value="gimmeanotherblog" />
242           <?php do_action( 'signup_hidden_fields' ); ?>
243           <?php show_blog_form($blogname, $blog_title, $errors); ?>
244           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p>
245      </form>
246      <?php
247 }
248
249 /**
250  * Validate a new blog signup
251  *
 
Line Code
324      $user_name = $filtered_results['user_name'];
325      $user_email = $filtered_results['user_email'];
326      $errors = $filtered_results['errors'];
327
328      ?>
329
330      <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2>
331      <form id="setupform" method="post" action="wp-signup.php">
332           <input type="hidden" name="stage" value="validate-user-signup" />
333           <?php do_action( 'signup_hidden_fields' ); ?>
334           <?php show_user_form($user_name, $user_email, $errors); ?>
335
336           <p>
337           <?php if ( $active_signup == 'blog' ) { ?>
338                <input id="signupblog" type="hidden" name="signup_for" value="blog" />
339           <?php } elseif ( $active_signup == 'user' ) { ?>
340                <input id="signupblog" type="hidden" name="signup_for" value="user" />
341           <?php } else { ?>
342                <input id="signupblog" type="radio" name="signup_for" value="blog" <?php checked( $signup_for, 'blog' ); ?> />
 
Line Code
426      $errors = $filtered_results['errors'];
427
428      if ( empty($blogname) )
429           $blogname = $user_name;
430      ?>
431      <form id="setupform" method="post" action="wp-signup.php">
432           <input type="hidden" name="stage" value="validate-blog-signup" />
433           <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" />
434           <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" />
435           <?php do_action( 'signup_hidden_fields' ); ?>
436           <?php show_blog_form($blogname, $blog_title, $errors); ?>
437           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p>
438      </form>
439      <?php
440 }
441
442 /**
443  * Validate new site signup
444  *