before_populate_network

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

Paramètres

Entrée :
$network_id, $domain, $email, $site_name, $path, $subdomain_install
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.

Utilisation

// Ajouter une fonction au hook action 'before_populate_network'
add_action('before_populate_network', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($network_id, $domain, $email, $site_name, $path, $subdomain_install) {
    // Votre code ici
    error_log('Hook before_populate_network déclenché');
}

Actualités

Chargement des actualités...