Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wpmu_validate_blog_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
701           $diff = current_time( 'timestamp', true ) - mysql2date('U', $signup->registered);
702           // If registered more than two days ago, cancel registration and let this signup go through.
703           if ( $diff > 172800 )
704                $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->signups WHERE domain = %s AND path = %s", $mydomain, $path) );
705           else
706                $errors->add('blogname', __('That site is currently reserved but may be available in a couple days.'));
707      }
708
709      $result = array('domain' => $mydomain, 'path' => $path, 'blogname' => $blogname, 'blog_title' => $blog_title, 'errors' => $errors);
710      return apply_filters('wpmu_validate_blog_signup', $result);
711 }
712
713 /**
714  * Record site signup information for future activation.
715  *
716  * @since MU
717  * @uses wpmu_signup_blog_notification()
718  *
719  * @param string $domain The requested domain.