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 |
---|---|
612 | $diff = current_time( 'timestamp', true ) - mysql2date('U', $signup->registered); |
613 | // If registered more than two days ago, cancel registration and let this signup go through. |
614 | if ( $diff > 172800 ) |
615 | $wpdb->delete( $wpdb->signups, array( 'domain' => $mydomain , 'path' => $path ) ); |
616 | else |
617 | $errors->add('blogname', __('That site is currently reserved but may be available in a couple days.')); |
618 | } |
619 |
|
620 | $result = array('domain' => $mydomain, 'path' => $path, 'blogname' => $blogname, 'blog_title' => $blog_title, 'errors' => $errors); |
621 | return apply_filters('wpmu_validate_blog_signup', $result); |
622 | } |
623 |
|
624 | /** |
625 | * Record site signup information for future activation. |
626 | * |
627 | * @since MU |
628 | * @uses wpmu_signup_blog_notification() |
629 | * |
630 | * @param string $domain The requested domain. |