Fires before a network is populated.
$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.
// 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é');
}
Chargement des actualités...