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 |
237 | $user_name = $filtered_results['user_name']; |
238 | $user_email = $filtered_results['user_email']; |
239 | $errors = $filtered_results['errors']; |
240 |
|
241 | ?> |
242 |
|
243 | <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2> |
244 | <form id="setupform" method="post" action="wp-signup.php"> |
245 | <input type="hidden" name="stage" value="validate-user-signup" /> |
246 | <?php do_action( 'signup_hidden_fields' ); ?> |
247 | <?php show_user_form($user_name, $user_email, $errors); ?> |
248 |
|
249 | <p> |
250 | <?php if ( $active_signup == 'blog' ) { ?> |
251 | <input id="signupblog" type="hidden" name="signup_for" value="blog" /> |
252 | <?php } elseif ( $active_signup == 'user' ) { ?> |
253 | <input id="signupblog" type="hidden" name="signup_for" value="user" /> |
254 | <?php } else { ?> |
255 | <input id="signupblog" type="radio" name="signup_for" value="blog" <?php checked( $signup_for, 'blog' ); ?> /> |
Line | Code |
308 | $errors = $filtered_results['errors']; |
309 |
|
310 | if ( empty($blogname) ) |
311 | $blogname = $user_name; |
312 | ?> |
313 | <form id="setupform" method="post" action="wp-signup.php"> |
314 | <input type="hidden" name="stage" value="validate-blog-signup" /> |
315 | <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" /> |
316 | <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" /> |
317 | <?php do_action( 'signup_hidden_fields' ); ?> |
318 | <?php show_blog_form($blogname, $blog_title, $errors); ?> |
319 | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p> |
320 | </form> |
321 | <?php |
322 | } |
323 |
|
324 | function validate_blog_signup() { |
325 | // Re-validate user info. |
326 | $result = wpmu_validate_user_signup($_POST['user_name'], $_POST['user_email']); |