ms_site_not_found action-hookWP 3.9.0

Fires when a network can be determined but a site cannot.

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

Usage

add_action( 'ms_site_not_found', 'wp_kama_ms_site_not_found_action', 10, 3 );

/**
 * Function for `ms_site_not_found` action-hook.
 * 
 * @param WP_Network $current_site The network that had been determined.
 * @param string     $domain       The domain used to search for a site.
 * @param string     $path         The path used to search for a site.
 *
 * @return void
 */
function wp_kama_ms_site_not_found_action( $current_site, $domain, $path ){

	// action...
}
$current_site(WP_Network)
The network that had been determined.
$domain(string)
The domain used to search for a site.
$path(string)
The path used to search for a site.

Changelog

Since 3.9.0 Introduced.

Where the hook is called

ms_load_current_site_and_network()
ms_site_not_found
wp-includes/ms-load.php 418
do_action( 'ms_site_not_found', $current_site, $domain, $path );

Where the hook is used in WordPress

Usage not found.