Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: ms_site_not_found

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
407            * At the time of this action, the only recourse is to redirect somewhere
408            * and exit. If you want to declare a particular site, do so earlier.
409            *
410            * @since 3.9.0
411            *
412            * @param object $current_site The network that had been determined.
413            * @param string $domain       The domain used to search for a site.
414            * @param string $path         The path used to search for a site.
415            */
416           do_action( 'ms_site_not_found', $current_site, $domain, $path );
417
418           if ( $subdomain && ! defined( 'NOBLOGREDIRECT' ) ) {
419                // For a "subdomain" installation, redirect to the signup form specifically.
420                $destination .= 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
421           } elseif ( $subdomain ) {
422                /*
423                 * For a "subdomain" installation, the NOBLOGREDIRECT constant
424                 * can be used to avoid a redirect to the signup form.
425                 * Using the ms_site_not_found action is preferred to the constant.