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