Fires when a network can be determined but a site cannot. At the time of this action, the only recourse is to redirect somewhere and exit. If you want to declare a particular site, do so earlier.
$current_site, $domain, $path
Sortie :
@param WP_Network $current_site The network that had been determined. @param string $domain The domain used to search for a site. @param string $path The path used to search for a site.
// Ajouter une fonction au hook action 'ms_site_not_found'
add_action('ms_site_not_found', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($current_site, $domain, $path) {
// Votre code ici
error_log('Hook ms_site_not_found déclenché');
}
Chargement des actualités...