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


  • 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;


		$result = false;

	return apply_filters( 'can_edit_network', $result, $site_id );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: