Yoast\WP\SEO\Helpers

Taxonomy_Helper::get_indexable_taxonomies()publicYoast 1.0

This builds a list of indexable taxonomies.

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

Хуков нет.

Возвращает

Массив. The indexable taxonomies.

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

$Taxonomy_Helper = new Taxonomy_Helper();
$Taxonomy_Helper->get_indexable_taxonomies();

Код Taxonomy_Helper::get_indexable_taxonomies() Yoast 20.0

public function get_indexable_taxonomies() {
	$public_taxonomies   = $this->get_public_taxonomies();
	$excluded_taxonomies = $this->get_excluded_taxonomies_for_indexables();

	// `array_values`, to make sure that the keys are reset.
	return \array_values( \array_diff( $public_taxonomies, $excluded_taxonomies ) );
}