How to enable user_can_rich_edit for guests?

Using wp 3.3beta1 with the wp_editor on the front-end for bbPress.

When calling the editor on the front end, how do I allow a guest to see the visual editor?

I only see options to disable the visual editor site wide, or on a per user basis, but no option to allow guests to use visual?

1 Answer
1

Just add the can_richedit capability to the user you want to be able to use the editor.

You can use the Capability Manager to do it.

Update: to enable the rich editor on anonymous/guest users, add this to your funcitons.php or anywhere you like, just make sure it comes before the wp_editor() call.

add_filter('user_can_richedit', '__return_true');

Leave a Comment