ms_network_not_found

ACTION wp-includes\ms-load.php (ligne 359) github
Fires when a network cannot be found based on the requested domain and path. At the time of this action, the only recourse is to redirect somewhere and exit. If you want to declare a particular network, do so earlier.

Paramètres

Entrée :
$domain, $path
Sortie :
@param string $domain       The domain used to search for a network.
@param string $path         The path used to search for a path.

Utilisation

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

function ma_fonction_personnalisee($domain, $path) {
    // Votre code ici
    error_log('Hook ms_network_not_found déclenché');
}

Actualités

Chargement des actualités...