ms_network_not_found action-hookWP 4.4.0

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

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.

Usage

add_action( 'ms_network_not_found', 'wp_kama_ms_network_not_found_action', 10, 2 );

/**
 * Function for `ms_network_not_found` action-hook.
 * 
 * @param string $domain The domain used to search for a network.
 * @param string $path   The path used to search for a path.
 *
 * @return void
 */
function wp_kama_ms_network_not_found_action( $domain, $path ){

	// action...
}
$domain(string)
The domain used to search for a network.
$path(string)
The path used to search for a path.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

ms_load_current_site_and_network()
ms_network_not_found
wp-includes/ms-load.php 355
do_action( 'ms_network_not_found', $domain, $path );
wp-includes/ms-load.php 383
do_action( 'ms_network_not_found', $domain, $path );

Where the hook is used in WordPress

Usage not found.