Advertisements

can_edit_network

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

Advertisements

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:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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: