Yoast\WP\SEO\Helpers
Taxonomy_Helper::is_indexable()
Checks if the requested term is indexable.
Метод класса: Taxonomy_Helper{}
Хуков нет.
Возвращает
true|false
. True when taxonomy is set to index.
Использование
$Taxonomy_Helper = new Taxonomy_Helper(); $Taxonomy_Helper->is_indexable( $taxonomy );
- $taxonomy(строка) (обязательный)
- The taxonomy slug.
Код Taxonomy_Helper::is_indexable() Taxonomy Helper::is indexable Yoast 24.4
public function is_indexable( $taxonomy ) { return ! $this->options->get( 'noindex-tax-' . $taxonomy, false ); }