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 |
---|---|
957 | break; |
958 | case 'default': |
959 | default: |
960 | $user_email = isset( $_POST['user_email'] ) ? $_POST['user_email'] : ''; |
961 | /** |
962 | * Fires when the site sign-up form is sent. |
963 | * |
964 | * @since 3.0.0 |
965 | */ |
966 | do_action( 'preprocess_signup_form' ); |
967 | if ( is_user_logged_in() && ( 'all' === $active_signup || 'blog' === $active_signup ) ) { |
968 | signup_another_blog( $newblogname ); |
969 | } elseif ( ! is_user_logged_in() && ( 'all' === $active_signup || 'user' === $active_signup ) ) { |
970 | signup_user( $newblogname, $user_email ); |
971 | } elseif ( ! is_user_logged_in() && ( 'blog' === $active_signup ) ) { |
972 | _e( 'Sorry, new registrations are not allowed at this time.' ); |
973 | } else { |
974 | _e( 'You are logged in already. No need to register again!' ); |
975 | } |