Yoast\WP\SEO\Helpers

Taxonomy_Helper::get_term_description()publicYoast 1.0

Retrieves the term description (without tags).

Метод класса: Taxonomy_Helper{}

Хуков нет.

Возвращает

Строку. Term description (without tags).

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

$Taxonomy_Helper = new Taxonomy_Helper();
$Taxonomy_Helper->get_term_description( $term_id );
$term_id(int) (обязательный)
Term ID.

Код Taxonomy_Helper::get_term_description() Yoast 19.11

public function get_term_description( $term_id ) {
	return $this->string->strip_all_tags( \term_description( $term_id ) );
}