wordpress / latest / hooks / ms_site_not_found.html

do_action( 'ms_site_not_found', WP_Network $current_site, string $domain, string $path )

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

Description

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.

Parameters

$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.

Source

File: wp-includes/ms-load.php. View all references

do_action( 'ms_site_not_found', $current_site, $domain, $path );

Used By

Used By Description

Changelog

Version Description
3.9.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/ms_site_not_found