WPSEO_Primary_Term_Admin::filter_hierarchical_taxonomies()privateYoast 1.0

Returns whether or not a taxonomy is hierarchical.

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

Хуков нет.

Возвращает

true|false.

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

// private - только в коде основоного (родительского) класса
$result = $this->filter_hierarchical_taxonomies( $taxonomy );
$taxonomy(stdClass) (обязательный)
Taxonomy object.

Код WPSEO_Primary_Term_Admin::filter_hierarchical_taxonomies() Yoast 22.4

private function filter_hierarchical_taxonomies( $taxonomy ) {
	return (bool) $taxonomy->hierarchical;
}