This global variable is used to store elements that are allowed in a post. These elements are allowed only in body of the post, allowedposttags is used for rest of the HTML. All others are stripped before the post is published. It is an associative array set in [wordpress root folder]/wp-includes/kses.php (kses is a HTML/XHTML filter written in PHP). It is used in function wp_filter_post_kses($data) defined in [wordpress root folder]/wp-includes/kses.php which is eventually executed for the action init.

Refer to allowedposttags on ways of modifying the elements that are allowed in the post.

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:

    [...] richedit, page_cache, pagenow, wp_version, table_prefix,wp,admin_page_hooks, wp_object_cache, allowedposttags, allowedtags, and [...]

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.