can_edit_network WordPress Filter Hook

The can_edit_network hook allows a user to specify whether they can edit the network settings. This can be useful for preventing accidental or unauthorized changes to the network settings.

apply_filters( 'can_edit_network', bool $result, int $network_id ) #

Filters whether this network can be edited from this page.


Parameters

$result

(bool)Whether the network can be edited from this page.

$network_id

(int)The network ID to check.


Top ↑

Source

File: wp-admin/includes/ms.php

View on Trac



Top ↑

Changelog

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