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 |
---|---|
375 | <p> |
376 | <?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 ) ?> |
377 | </p> |
378 | <?php |
379 | /** |
380 | * Fires when the site or user sign-up process is complete. |
381 | * |
382 | * @since 3.0.0 |
383 | */ |
384 | do_action( 'signup_finished' ); |
385 | } |
386 |
|
387 | /** |
388 | * Setup the new user signup process |
389 | * |
390 | * @since MU |
391 | * |
392 | * @uses apply_filters() filter $filtered_results |
393 | * @uses show_user_form() to display the user registration form |
Line | Code |
498 | */ |
499 | function confirm_user_signup($user_name, $user_email) { |
500 | ?> |
501 | <h2><?php printf( __( '%s is your new username' ), $user_name) ?></h2> |
502 | <p><?php _e( 'But, before you can start using your new username, <strong>you must activate it</strong>.' ) ?></p> |
503 | <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given.' ), $user_email ); ?></p> |
504 | <p><?php _e( 'If you do not activate your username within two days, you will have to sign up again.' ); ?></p> |
505 | <?php |
506 | /** This action is documented in wp-signup.php */ |
507 | do_action( 'signup_finished' ); |
508 | } |
509 |
|
510 | /** |
511 | * Setup the new site signup |
512 | * |
513 | * @since MU |
514 | * |
515 | * @uses apply_filters() to filter $filtered_results |
516 | * @uses show_blog_form() to display the blog signup form |
Line | Code |
637 | <?php _e( 'If you haven’t received your email yet, there are a number of things you can do:' ) ?> |
638 | <ul id="noemail-tips"> |
639 | <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> |
640 | <li><p><?php _e( 'Check the junk or spam folder of your email client. Sometime emails wind up there by mistake.' ) ?></p></li> |
641 | <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> |
642 | </ul> |
643 | </p> |
644 | <?php |
645 | /** This action is documented in wp-signup.php */ |
646 | do_action( 'signup_finished' ); |
647 | } |
648 |
|
649 | // Main |
650 | $active_signup = get_site_option( 'registration', 'none' ); |
651 | /** |
652 | * Filter the type of site sign-up. |
653 | * |
654 | * @since 3.0.0 |
655 | * |