From 06c5a67872af842aa5ba863e89bb821b0057b52e Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Thu, 21 Jan 2021 12:03:31 +0000 Subject: [PATCH] Disable taxonomy description HTML stripping --- functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions.php b/functions.php index c0dd789..b8dcd71 100644 --- a/functions.php +++ b/functions.php @@ -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' );