While building a plugin we wanted to force the rich editor for all users - even those that disabled it in their user options. While we used it in a plugin, it can obviously be used anywhere that the wp_editor
is used.
1
<?php
2
/*
3
Overwrites user_can_richedit()
4
@return bool
5
http://www.beliefmedia.com/code/wp-snippets/force-rich-editor
6
*/
7
8
9
10
11
12
/*
13
Overwrites user_can_richedit()
14
@return bool
15
*/
16
17
function beliefmedia_force_rich_editor(){
18
return true;
19
}