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 |
|---|---|
| 219 | } |
| 220 | |
| 221 | function confirm_another_blog_signup($domain, $path, $blog_title, $user_name, $user_email = '', $meta = '') { |
| 222 | ?> |
| 223 | <h2><?php printf( __( 'The site %s is yours.' ), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2> |
| 224 | <p> |
| 225 | <?php printf( __( '<a href="http://%1$s">http://%2$s</a> is your new site. <a href="%3$s">Log in</a> as “%4$s” using your existing password.' ), $domain.$path, $domain.$path, "http://" . $domain.$path . "wp-login.php", $user_name ) ?> |
| 226 | </p> |
| 227 | <?php |
| 228 | do_action( 'signup_finished' ); |
| 229 | } |
| 230 | |
| 231 | function signup_user($user_name = '', $user_email = '', $errors = '') { |
| 232 | global $current_site, $active_signup; |
| 233 | |
| 234 | if ( !is_wp_error($errors) ) |
| 235 | $errors = new WP_Error(); |
| 236 | if ( isset( $_POST[ 'signup_for' ] ) ) |
| 237 | $signup[ esc_html( $_POST[ 'signup_for' ] ) ] = 'checked="checked"'; |
| Line | Code |
| 295 | } |
| 296 | |
| 297 | function confirm_user_signup($user_name, $user_email) { |
| 298 | ?> |
| 299 | <h2><?php printf( __( '%s is your new username' ), $user_name) ?></h2> |
| 300 | <p><?php _e( 'But, before you can start using your new username, <strong>you must activate it</strong>.' ) ?></p> |
| 301 | <p><?php printf(__( 'Check your inbox at <strong>%1$s</strong> and click the link given.' ), $user_email) ?></p> |
| 302 | <p><?php _e( 'If you do not activate your username within two days, you will have to sign up again.' ); ?></p> |
| 303 | <?php |
| 304 | do_action( 'signup_finished' ); |
| 305 | } |
| 306 | |
| 307 | function signup_blog($user_name = '', $user_email = '', $blogname = '', $blog_title = '', $errors = '') { |
| 308 | if ( !is_wp_error($errors) ) |
| 309 | $errors = new WP_Error(); |
| 310 | |
| 311 | // allow definition of default variables |
| 312 | $filtered_results = apply_filters('signup_blog_init', array('user_name' => $user_name, 'user_email' => $user_email, 'blogname' => $blogname, 'blog_title' => $blog_title, 'errors' => $errors )); |
| 313 | $user_name = $filtered_results['user_name']; |
| Line | Code |
| 368 | <p> |
| 369 | <?php _e( 'If you haven’t received your email yet, there are a number of things you can do:' ) ?> |
| 370 | <ul id="noemail-tips"> |
| 371 | <li><p><strong><?php _e( 'Wait a little longer. Sometimes delivery of email can be delayed by processes outside of our control.' ) ?></strong></p></li> |
| 372 | <li><p><?php _e( 'Check the junk or spam folder of your email client. Sometime emails wind up there by mistake.' ) ?></p></li> |
| 373 | <li><?php printf( __( 'Have you entered your email correctly? You have entered %s, if it’s incorrect, you will not receive your email.' ), $user_email ) ?></li> |
| 374 | </ul> |
| 375 | </p> |
| 376 | <?php |
| 377 | do_action( 'signup_finished' ); |
| 378 | } |
| 379 | |
| 380 | // Main |
| 381 | $active_signup = get_site_option( 'registration' ); |
| 382 | if ( !$active_signup ) |
| 383 | $active_signup = 'all'; |
| 384 | |
| 385 | $active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user" |
| 386 | |