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
491           // If registered more than two days ago, cancel registration and let this signup go through.
492           if ( $diff > 172800 )
493                $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->signups WHERE user_email = %s", $user_email) );
494           else
495                $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.'));
496      }
497
498      $result = array('user_name' => $user_name, 'orig_username' => $orig_username, 'user_email' => $user_email, 'errors' => $errors);
499
500      return apply_filters('wpmu_validate_user_signup', $result);
501 }
502
503 function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') {
504      global $wpdb, $domain, $base, $current_site;
505
506      $blog_title = strip_tags( $blog_title );
507      $blog_title = substr( $blog_title, 0, 50 );
508
509      $errors = new WP_Error();