Yoast\WP\SEO\Helpers
Taxonomy_Helper::get_indexable_taxonomies()
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() Taxonomy Helper::get indexable taxonomies Yoast 22.4
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 ) ); }