Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

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.

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
421                else
422                     _e( 'Site registration has been disabled.' );
423                break;
424           case 'gimmeanotherblog':
425                validate_another_blog_signup();
426                break;
427           case 'default':
428           default :
429                $user_email = isset( $_POST[ 'user_email' ] ) ? $_POST[ 'user_email' ] : '';
430                do_action( "preprocess_signup_form" ); // populate the form from invites, elsewhere?
431                if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) )
432                     signup_another_blog($newblogname);
433                elseif ( is_user_logged_in() == false && ( $active_signup == 'all' || $active_signup == 'user' ) )
434                     signup_user( $newblogname, $user_email );
435                elseif ( is_user_logged_in() == false && ( $active_signup == 'blog' ) )
436                     _e( 'Sorry, new registrations are not allowed at this time.' );
437                else
438                     _e( 'You are logged in already. No need to register again!' );
439