Fires after the theme is switched. See {@see 'after_switch_theme'}.
N/A
Sortie :
@param string $new_name Name of the new theme. @param WP_Theme $new_theme WP_Theme instance of the new theme. @param WP_Theme $old_theme WP_Theme instance of the old theme. @return bool
// Utilisation de la fonction validate_current_theme
$result = validate_current_theme();
if ($result) {
// Votre logique ici
}
Chargement des actualités...