Created
August 1, 2018 09:09
-
-
Save Inzman/25ae694d518829296cd4e54a7e93c5f9 to your computer and use it in GitHub Desktop.
Allow HTML in WordPress Category & Taxonomy Descriptions
This file contains hidden or 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
| // https://docs.appthemes.com/tutorials/allow-html-in-wordpress-category-taxonomy-descriptions/ | |
| // allow html in category and taxonomy descriptions | |
| remove_filter( 'pre_term_description', 'wp_filter_kses' ); | |
| remove_filter( 'pre_link_description', 'wp_filter_kses' ); | |
| remove_filter( 'pre_link_notes', 'wp_filter_kses' ); | |
| remove_filter( 'term_description', 'wp_kses_data' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment