user_can_richedit filter-hook . WP 2.1.0
Filters whether the user can access the visual editor.
Usage
add_filter( 'user_can_richedit', 'filter_function_name_3936' ); function filter_function_name_3936( $wp_rich_edit ){ // filter... return $wp_rich_edit; }
- $wp_rich_edit(true/false)
- Whether the user can access the visual editor.
Changelog
Since 2.1.0 | Introduced. |
Where the hook is called
user_can_richedit
wp-includes/general-template.php 3481
return apply_filters( 'user_can_richedit', $wp_rich_edit );