Filters whether the user can access the visual editor.
Parameters
$wp_rich_editbool- Whether the user can access the visual editor.
Source
return apply_filters( 'user_can_richedit', $wp_rich_edit );
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
Filters whether the user can access the visual editor.
$wp_rich_editboolreturn apply_filters( 'user_can_richedit', $wp_rich_edit );
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
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 );`