Skip to content

Instantly share code, notes, and snippets.

@Dianakc
Created September 14, 2013 02:16
Show Gist options
  • Save Dianakc/46f3bdfd8dcf027dd652 to your computer and use it in GitHub Desktop.
Save Dianakc/46f3bdfd8dcf027dd652 to your computer and use it in GitHub Desktop.
Allow HTML in category, tags descriptions
<??php
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' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment