Last active
July 23, 2022 08:01
-
-
Save Yorlinq/818f7efeb985e7040828ce92405f4dc3 to your computer and use it in GitHub Desktop.
Allow HTML within category description - WordPress
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
// Remove HTML filter for 'pre_term_description' | |
foreach ( array( 'pre_term_description' ) as $filter ) { | |
remove_filter( $filter, 'wp_filter_kses' ); | |
} | |
// Remove HTML filter for 'term_description' | |
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