Created
April 27, 2012 15:30
-
-
Save coenjacobs/2510177 to your computer and use it in GitHub Desktop.
Allow HTML in term (category, tag) descriptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach ( array( 'pre_term_description' ) as $filter ) { | |
remove_filter( $filter, 'wp_filter_kses' ); | |
} | |
foreach ( array( 'term_description' ) as $filter ) { | |
remove_filter( $filter, 'wp_kses_data' ); | |
} |
How about allow shortcode in term? For example WooCommerce Product Categories descriptions.
Hi, i'm a little confused, so this is for product category category, right?
Can this be used to allow html on a product description, i believe @elvinlee and i are looking for the same thing.
Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Worked like a charm.