populate_network_meta

FUNCTION wp-admin\includes\schema.php (ligne 1010) github
Fires before a network is populated.

Paramètres

Entrée :
$network_id, array $meta = array(
Sortie :
@param int    $network_id        ID of network to populate.
@param string $domain            The domain name for the network.
@param string $email             Email address for the network administrator.
@param string $site_name         The name of the network.
@param string $path              The path to append to the network's domain name.
@param bool   $subdomain_install Whether the network is a subdomain installation or a subdirectory installation.
@param int    $network_id        ID of network created.
@param string $domain            The domain name for the network.
@param string $email             Email address for the network administrator.
@param string $site_name         The name of the network.
@param string $path              The path to append to the network's domain name.
@param bool   $subdomain_install Whether the network is a subdomain installation or a subdirectory installation.
@param int    $network_id        ID of network created.
@param string $domain            The domain name for the network.
@param string $email             Email address for the network administrator.
@param string $site_name         The name of the network.
@param string $path              The path to append to the network's domain name.
@param bool   $subdomain_install Whether the network is a subdomain installation or a subdirectory installation.
@param int   $network_id Network ID to populate meta for.
@param array $meta       Optional. Custom meta $key => $value pairs to use. Default empty array.

Utilisation

// Utilisation de la fonction populate_network_meta
$result = populate_network_meta($network_id, array $meta = array();

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

Actualités

Chargement des actualités...