ms_site_not_found WordPress Action Hook

If you're using the WordPress CMS, the ms_site_not_found hook can be used to display a custom message when a site can't be found. This might be useful if you want to display a message to visitors that a site is unavailable or if you're troubleshooting a site issue.

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.


Top ↑

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.


Top ↑

Source

File: wp-includes/ms-load.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.