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.
$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.
// 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é');
}
Chargement des actualités...