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 |
|---|---|
| 549 | else |
| 550 | _e( 'Site registration has been disabled.' ); |
| 551 | break; |
| 552 | case 'gimmeanotherblog': |
| 553 | validate_another_blog_signup(); |
| 554 | break; |
| 555 | case 'default': |
| 556 | default : |
| 557 | $user_email = isset( $_POST[ 'user_email' ] ) ? $_POST[ 'user_email' ] : ''; |
| 558 | do_action( 'preprocess_signup_form' ); // populate the form from invites, elsewhere? |
| 559 | if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) ) |
| 560 | signup_another_blog($newblogname); |
| 561 | elseif ( is_user_logged_in() == false && ( $active_signup == 'all' || $active_signup == 'user' ) ) |
| 562 | signup_user( $newblogname, $user_email ); |
| 563 | elseif ( is_user_logged_in() == false && ( $active_signup == 'blog' ) ) |
| 564 | _e( 'Sorry, new registrations are not allowed at this time.' ); |
| 565 | else |
| 566 | _e( 'You are logged in already. No need to register again!' ); |
| 567 | |