ms_network_not_found

ms_network_not_found

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('ms_network_not_found') is found 2 times:

  • /wp-includes/ms-load.php line 359
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
         *
         * @param string $domain       The domain used to search for a network.
         * @param string $path         The path used to search for a path.
         */
        do_action( 'ms_network_not_found', $domain, $path );
     
        return false;
    } elseif ( $path === $current_site->path ) {
        $current_blog = get_site_by_path( $domain, $path );
    } else {
        // Search the network path + one more path segment (on top of the network path).
  • /wp-includes/ms-load.php line 387
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    // No network has been found, bail.
    if ( empty( $current_site ) ) {
        /** This action is documented in wp-includes/ms-settings.php */
        do_action( 'ms_network_not_found', $domain, $path );
     
        return false;
    }
     
    // During activation of a new subdomain, the requested site does not yet exist.
    if ( empty( $current_blog ) && wp_installing() ) {