Skip to content

Instantly share code, notes, and snippets.

@pmgllc
Created July 3, 2014 18:07
Show Gist options
  • Save pmgllc/ae3d72fe196152248d71 to your computer and use it in GitHub Desktop.
Save pmgllc/ae3d72fe196152248d71 to your computer and use it in GitHub Desktop.
Allow HTML tags in content limit
<?php
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