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 |
|---|---|
| 178 | $home_url = get_home_url( $blog->userblog_id ); |
| 179 | echo '<li><a href="' . esc_url( $home_url ) . '">' . $home_url . '</a></li>'; |
| 180 | } ?> |
| 181 | </ul> |
| 182 | <?php } ?> |
| 183 | |
| 184 | <p><?php _e( 'If you’re not going to use a great site domain, leave it for a new user. Now have at it!' ) ?></p> |
| 185 | <form id="setupform" method="post" action="wp-signup.php"> |
| 186 | <input type="hidden" name="stage" value="gimmeanotherblog" /> |
| 187 | <?php do_action( 'signup_hidden_fields' ); ?> |
| 188 | <?php show_blog_form($blogname, $blog_title, $errors); ?> |
| 189 | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p> |
| 190 | </form> |
| 191 | <?php |
| 192 | } |
| 193 | |
| 194 | function validate_another_blog_signup() { |
| 195 | global $wpdb, $blogname, $blog_title, $errors, $domain, $path; |
| 196 | $current_user = wp_get_current_user(); |
| Line | Code |
| 242 | $user_name = $filtered_results['user_name']; |
| 243 | $user_email = $filtered_results['user_email']; |
| 244 | $errors = $filtered_results['errors']; |
| 245 | |
| 246 | ?> |
| 247 | |
| 248 | <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2> |
| 249 | <form id="setupform" method="post" action="wp-signup.php"> |
| 250 | <input type="hidden" name="stage" value="validate-user-signup" /> |
| 251 | <?php do_action( 'signup_hidden_fields' ); ?> |
| 252 | <?php show_user_form($user_name, $user_email, $errors); ?> |
| 253 | |
| 254 | <p> |
| 255 | <?php if ( $active_signup == 'blog' ) { ?> |
| 256 | <input id="signupblog" type="hidden" name="signup_for" value="blog" /> |
| 257 | <?php } elseif ( $active_signup == 'user' ) { ?> |
| 258 | <input id="signupblog" type="hidden" name="signup_for" value="user" /> |
| 259 | <?php } else { ?> |
| 260 | <input id="signupblog" type="radio" name="signup_for" value="blog" <?php echo $signup['blog'] ?> /> |
| Line | Code |
| 313 | $errors = $filtered_results['errors']; |
| 314 | |
| 315 | if ( empty($blogname) ) |
| 316 | $blogname = $user_name; |
| 317 | ?> |
| 318 | <form id="setupform" method="post" action="wp-signup.php"> |
| 319 | <input type="hidden" name="stage" value="validate-blog-signup" /> |
| 320 | <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" /> |
| 321 | <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" /> |
| 322 | <?php do_action( 'signup_hidden_fields' ); ?> |
| 323 | <?php show_blog_form($blogname, $blog_title, $errors); ?> |
| 324 | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p> |
| 325 | </form> |
| 326 | <?php |
| 327 | } |
| 328 | |
| 329 | function validate_blog_signup() { |
| 330 | // Re-validate user info. |
| 331 | $result = wpmu_validate_user_signup($_POST['user_name'], $_POST['user_email']); |