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.
Line | Code |
---|---|
993 | break; |
994 | case 'default': |
995 | default: |
996 | $user_email = isset( $_POST['user_email'] ) ? $_POST['user_email'] : ''; |
997 | /** |
998 | * Fires when the site sign-up form is sent. |
999 | * |
1000 | * @since 3.0.0 |
1001 | */ |
1002 | do_action( 'preprocess_signup_form' ); |
1003 | if ( is_user_logged_in() && ( 'all' === $active_signup || 'blog' === $active_signup ) ) { |
1004 | signup_another_blog( $newblogname ); |
1005 | } elseif ( ! is_user_logged_in() && ( 'all' === $active_signup || 'user' === $active_signup ) ) { |
1006 | signup_user( $newblogname, $user_email ); |
1007 | } elseif ( ! is_user_logged_in() && ( 'blog' === $active_signup ) ) { |
1008 | _e( 'Sorry, new registrations are not allowed at this time.' ); |
1009 | } else { |
1010 | _e( 'You are logged in already. No need to register again!' ); |
1011 | } |