can_edit_network

FUNCTION wp-admin\includes\ms.php (ligne 812) github
Determines whether or not this network from this page can be edited. By default editing of network is restricted to the Network Admin for that `$network_id`. This function allows for this to be overridden.

Paramètres

Entrée :
$network_id
Sortie :
@param int $network_id The network ID to check.
@return bool True if network can be edited, false otherwise.

Utilisation

// Utilisation de la fonction can_edit_network
$result = can_edit_network($network_id);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...