site_health_tab_content

ACTION wp-admin\site-health.php (ligne 220) github
Fires when outputting the content of a custom Site Health tab. This action fires right after the Site Health header, and users are still subject to the capability checks for the Site Health page to view any custom tabs and their contents.

Paramètres

Entrée :
$_GET['tab']
Sortie :
@param string $tab The slug of the tab that was requested.

Utilisation

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

function ma_fonction_personnalisee($_GET['tab']) {
    // Votre code ici
    error_log('Hook site_health_tab_content déclenché');
}

Actualités

Chargement des actualités...