WPSEO_Taxonomy::custom_category_descriptions_allow_html()publicYoast 1.0

Allows post-kses-filtered HTML in term descriptions.

{} Это метод класса: WPSEO_Taxonomy{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$WPSEO_Taxonomy = new WPSEO_Taxonomy();
$WPSEO_Taxonomy->custom_category_descriptions_allow_html();

Код WPSEO_Taxonomy::custom_category_descriptions_allow_html() Yoast 19.10

public function custom_category_descriptions_allow_html() {
	remove_filter( 'term_description', 'wp_kses_data' );
	remove_filter( 'pre_term_description', 'wp_filter_kses' );
	add_filter( 'term_description', 'wp_kses_post' );
	add_filter( 'pre_term_description', 'wp_filter_post_kses' );
}