This global variable indicates whether the current user wants to use rich editing interface (by default using TinyMCE) for creating/editing posts and comments. Since WordPress 2.0, the option of rich editing is set per user, which can be accessed by using the checkbox, “Use the visual rich editor when writing”, in Admin Panel->Users->Your Profile.

richedit is set in the functions get_post_to_edit($id) and get_comment_to_edit($id) in the [wordpress-root-folder]/wp-admin/admin-functions.php. It is set using the function get_user_option('rich_editing').

WordPress defines an additional function user_can_richedit which, in addition to checking this option, checks whether the browser supports rich editing or not. Plugin developers can use this function, when using the global variable directly it should not noted that unlike lot of others, this global variable is defined as part of the admin functions.

Back to full list of global variables.

Technorati tags: , , , .

Discussion [Participate or Link]

  1. Abhijit Nadgouda’s List of WordPress Global Variables « Lorelle on WordPress said:

    […] Behavior Variables: wp_filter, richedit, page_cache, pagenow, wp_version, table_prefix,wp,admin_page_hooks, wp_object_cache, allowedposttags, allowedtags, and wp_rewrite […]

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.



Abhijit Nadgouda
iface Consulting
+91 9819820312
My bookmarks


This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.