validate_current_theme

FUNCTION wp-includes\theme.php (ligne 866) github
Fires after the theme is switched. See {@see 'after_switch_theme'}.

Paramètres

Entrée :
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

// Utilisation de la fonction validate_current_theme
$result = validate_current_theme();

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...