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