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.
Source
File: wp-admin/includes/ms.php
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |