Function: can_edit_network

can_edit_network( integer $network_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 $network_id. This function allows for this to be overridden.


Name Type(s) Default Value Description
$network_id integer

The network ID to check.



True if network can be edited, otherwise false.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.