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
183                          $home_url = get_home_url( $blog->userblog_id );
184                          echo '<li><a href="' . esc_url( $home_url ) . '">' . $home_url . '</a></li>';
185                     } ?>
186                </ul>
187      <?php } ?>
188
189      <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>
190      <form id="setupform" method="post" action="wp-signup.php">
191           <input type="hidden" name="stage" value="gimmeanotherblog" />
192           <?php do_action( "signup_hidden_fields" ); ?>
193           <?php show_blog_form($blogname, $blog_title, $errors); ?>
194           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p>
195      </form>
196      <?php
197 }
198
199 function validate_another_blog_signup() {
200      global $wpdb, $current_user, $blogname, $blog_title, $errors, $domain, $path;
201      $current_user = wp_get_current_user();
 
Line Code
247      $user_name = $filtered_results['user_name'];
248      $user_email = $filtered_results['user_email'];
249      $errors = $filtered_results['errors'];
250
251      ?>
252
253      <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2>
254      <form id="setupform" method="post" action="wp-signup.php">
255           <input type="hidden" name="stage" value="validate-user-signup" />
256           <?php do_action( "signup_hidden_fields" ); ?>
257           <?php show_user_form($user_name, $user_email, $errors); ?>
258
259           <p>
260           <?php if ( $active_signup == 'blog' ) { ?>
261                <input id="signupblog" type="hidden" name="signup_for" value="blog" />
262           <?php } elseif ( $active_signup == 'user' ) { ?>
263                <input id="signupblog" type="hidden" name="signup_for" value="user" />
264           <?php } else { ?>
265                <input id="signupblog" type="radio" name="signup_for" value="blog" <?php echo $signup['blog'] ?> />
 
Line Code
318      $errors = $filtered_results['errors'];
319
320      if ( empty($blogname) )
321           $blogname = $user_name;
322      ?>
323      <form id="setupform" method="post" action="wp-signup.php">
324           <input type="hidden" name="stage" value="validate-blog-signup" />
325           <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" />
326           <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" />
327           <?php do_action( "signup_hidden_fields" ); ?>
328           <?php show_blog_form($blogname, $blog_title, $errors); ?>
329           <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p>
330      </form>
331      <?php
332 }
333
334 function validate_blog_signup() {
335      // Re-validate user info.
336      $result = wpmu_validate_user_signup($_POST['user_name'], $_POST['user_email']);