Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wpmu_validate_user_signup

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
596           // If registered more than two days ago, cancel registration and let this signup go through.
597           if ( $diff > 172800 )
598                $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->signups WHERE user_email = %s", $user_email) );
599           else
600                $errors->add('user_email', __('That email address has already been used. Please check your inbox for an activation email. It will become available in a couple of days if you do nothing.'));
601      }
602
603      $result = array('user_name' => $user_name, 'orig_username' => $orig_username, 'user_email' => $user_email, 'errors' => $errors);
604
605      return apply_filters('wpmu_validate_user_signup', $result);
606 }
607
608 /**
609  * Processes new site registrations.
610  *
611  * Checks the data provided by the user during blog signup. Verifies
612  * the validity and uniqueness of blog paths and domains.
613  *
614  * This function prevents the current user from registering a new site