What is rich_editing?

I wanted to learn more about shortcodes with button implementation since I do not use them much and I have been doing a lot of research on the topic and the questions and tutorials I run across use a conditional with get_user_option( 'rich_editing' ) == 'true'. I tried a search on the site but browsing through I didn’t see anyone dive into the specifics and when I searched the codex it lands me on get_userdata() with:

enter image description here

So what is rich_editing actually doing if you are already using if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ))?

1 Answer
1

The rich_editing user option stores this check box value:

rich editing

wether or not do enable the visual editor for that particular user.

If it’s disabled then the content editor will look like this:

no visual editor here

Leave a Comment