wppaste
WordPress

do_action( 'ms_network_not_found', string $domain, string $path )

Since
4.4.0
Fires when a network cannot be found based on the requested domain and path.

Description

At the time of this action, the only recourse is to redirect somewhere and exit. If you want to declare a particular network, do so earlier.

Compatibility

WordPress
since 4.4.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$domainstring
The domain used to search for a network.
$pathstring
The path used to search for a path.

Where this hook fires · 2

  • wp-includes/ms-load.php:359ms_load_current_site_and_network()
  • wp-includes/ms-load.php:387ms_load_current_site_and_network()

Source code

			 *			 * @since 4.4.0			 *			 * @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).

Changelog

Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.