user_can_richedit

FUNCTION wp-includes\general-template.php (ligne 3900) github
Determines whether the user can access the visual editor. Checks if the user can access the visual editor and that it's supported by the user's browser.

Paramètres

Entrée :
N/A
Sortie :
@return bool True if the user can access the visual editor, false otherwise.

Utilisation

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

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

Actualités

Chargement des actualités...