apply_filters( 'user_can_richedit', bool $wp_rich_edit )
Filters whether the user can access the visual editor.
Description Description
Parameters Parameters
- $wp_rich_edit
-
(bool) Whether the user can access the visual editor.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
The following code should disable rich text for all users: `add_filter( ‘user_can_richedit’ , ‘__return_false’, 50 );`