wp_default_editor

FUNCTION wp-includes\general-template.php (ligne 3934) github
Filters whether the user can access the visual editor.

Paramètres

Entrée :
N/A
Sortie :
@param bool $wp_rich_edit Whether the user can access the visual editor.
@return string Either 'tinymce', 'html', or 'test'

Utilisation

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

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

Actualités

Chargement des actualités...