Definition:
function can_edit_network( $site_id ) {}
Whether or not we can edit this network from this page
By default editing of network is restricted to the Network Admin for that site_id this allows for this to be overridden
Parameters
- integer $site_id: The network/site id to check.
Defined filters
- can_edit_network
apply_filters( 'can_edit_network', $result, $site_id )
Source code
function can_edit_network( $site_id ) { global $wpdb; if ($site_id == $wpdb->siteid ) $result = true; else $result = false; return apply_filters( 'can_edit_network', $result, $site_id ); }
9093
No comments yet... Be the first to leave a reply!