Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save braddalton/5995879 to your computer and use it in GitHub Desktop.
Save braddalton/5995879 to your computer and use it in GitHub Desktop.
add_filter( 'get_the_content_limit_allowedtags', 'get_the_content_limit_custom_allowedtags' );
/**
* @author Brad Dalton
* @example http://wp.me/p1lTu0-a5w
*/
function get_the_content_limit_custom_allowedtags() {
// Add custom tags to this string
return '<script>,<style>,<br>,<em>,<i>,<ul>,<ol>,<li>,<a>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment