ms_network_not_found хук-событиеWP 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.

Использование

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(строка)
The domain used to search for a network.
$path(строка)
The path used to search for a path.

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

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 );

Где используется хук в WordPress

Использование не найдено.