Disable taxonomy description HTML stripping

This commit is contained in:
Ben Goldsworthy 2021-01-21 12:03:31 +00:00
parent 877aa0efc0
commit 06c5a67872
1 changed files with 5 additions and 0 deletions

View File

@ -718,3 +718,8 @@ function display_companies() {
add_action( 'wp_ajax_display_companies', 'display_companies' );
add_action( 'wp_ajax_nopriv_display_companies', 'display_companies' );
// 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' );