ms_network_not_found WordPress Action Hook

The ms_network_not_found hook is triggered when a network is not found. This hook can be used to display a custom message or perform a custom action when a network is not found.

do_action( 'ms_network_not_found', string $domain, string $path ) #

Fires when a network cannot be found based on the requested domain and path.


Description

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.


Top ↑

Parameters

$domain

(string)The domain used to search for a network.

$path

(string)The path used to search for a path.


Top ↑

Source

File: wp-includes/ms-load.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.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.