ms_site_not_found action-hook . WP 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', 'action_function_name_7943', 10, 3 ); function action_function_name_7943( $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_site_not_found
wp-includes/ms-load.php 414
do_action( 'ms_site_not_found', $current_site, $domain, $path );