can_edit_network
Filters whether this network can be edited from this page.
Usage
add_filter( 'can_edit_network', 'wp_kama_can_edit_network_filter', 10, 2 );
/**
* Function for `can_edit_network` filter-hook.
*
* @param bool $result Whether the network can be edited from this page.
* @param int $network_id The network ID to check.
*
* @return bool
*/
function wp_kama_can_edit_network_filter( $result, $network_id ){
// filter...
return $result;
}
- $result(true|false)
- Whether the network can be edited from this page.
- $network_id(int)
- The network ID to check.
Changelog
| Since 3.1.0 | Introduced. |
Where the hook is called
can_edit_network
wp-admin/includes/ms.php 834
return apply_filters( 'can_edit_network', $result, $network_id );