Welcome, visitor! Log in
 

Source View: preprocess_signup_form

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
695                break;
696           case 'default':
697           default :
698                $user_email = isset( $_POST[ 'user_email' ] ) ? $_POST[ 'user_email' ] : '';
699                /**
700                 * Fires when the site sign-up form is sent.
701                 *
702                 * @since 3.0.0
703                 */
704                do_action( 'preprocess_signup_form' );
705                if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) )
706                     signup_another_blog($newblogname);
707                elseif ( is_user_logged_in() == false && ( $active_signup == 'all' || $active_signup == 'user' ) )
708                     signup_user( $newblogname, $user_email );
709                elseif ( is_user_logged_in() == false && ( $active_signup == 'blog' ) )
710                     _e( 'Sorry, new registrations are not allowed at this time.' );
711                else
712                     _e( 'You are logged in already. No need to register again!' );
713