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_siteWP_Network- The network that had been determined.
$domainstring- The domain used to search for a site.
$pathstring- The path used to search for a site.
Source
do_action( 'ms_site_not_found', $current_site, $domain, $path );
Changelog
| Version | Description |
|---|---|
| 3.9.0 | Introduced. |
To use this hook you must use the SUNRISE file.
https://docs.wpvip.com/wordpress-on-vip/multisites/sunrise-php/
Add
define( 'SUNRISE', true );to thewp-config.php.Then create a file in the
/wp-content/directory calledsunrise.php.You can then access the
ms_site_not_foundaction.