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:
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
The rich_editing
user option stores this check box value:
wether or not do enable the visual editor for that particular user.
If it’s disabled then the content editor will look like this: