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 |
---|---|
602 | $diff = current_time( 'timestamp', true ) - mysql2date('U', $signup->registered); |
603 | // If registered more than two days ago, cancel registration and let this signup go through. |
604 | if ( $diff > 2 * DAY_IN_SECONDS ) |
605 | $wpdb->delete( $wpdb->signups, array( 'domain' => $mydomain , 'path' => $path ) ); |
606 | else |
607 | $errors->add('blogname', __('That site is currently reserved but may be available in a couple days.')); |
608 | } |
609 |
|
610 | $result = array('domain' => $mydomain, 'path' => $path, 'blogname' => $blogname, 'blog_title' => $blog_title, 'user' => $user, 'errors' => $errors); |
611 | return apply_filters('wpmu_validate_blog_signup', $result); |
612 | } |
613 |
|
614 | /** |
615 | * Record site signup information for future activation. |
616 | * |
617 | * @since MU |
618 | * @uses wpmu_signup_blog_notification() |
619 | * |
620 | * @param string $domain The requested domain. |