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 |
---|---|
392 | * At the time of this action, the only recourse is to redirect somewhere |
393 | * and exit. If you want to declare a particular site, do so earlier. |
394 | * |
395 | * @since 3.9.0 |
396 | * |
397 | * @param object $current_site The network that had been determined. |
398 | * @param string $domain The domain used to search for a site. |
399 | * @param string $path The path used to search for a site. |
400 | */ |
401 | do_action( 'ms_site_not_found', $current_site, $domain, $path ); |
402 |
|
403 | if ( $subdomain && ! defined( 'NOBLOGREDIRECT' ) ) { |
404 | // For a "subdomain" install, redirect to the signup form specifically. |
405 | $destination .= 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain ); |
406 | } elseif ( $subdomain ) { |
407 | // For a "subdomain" install, the NOBLOGREDIRECT constant |
408 | // can be used to avoid a redirect to the signup form. |
409 | // Using the ms_site_not_found action is preferred to the constant. |
410 | if ( '%siteurl%' !== NOBLOGREDIRECT ) { |