Yoast\WP\SEO\Helpers

Taxonomy_Helper::get_custom_taxonomies()publicYoast 1.0

Returns an array with the custom taxonomies.

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

Хуков нет.

Возвращает

Строку[]|WP_Taxonomy[]. Array with all the custom taxonomies. The type depends on the specified output variable.

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

$Taxonomy_Helper = new Taxonomy_Helper();
$Taxonomy_Helper->get_custom_taxonomies( $output );
$output(строка)
The output type to use.
По умолчанию: 'names'

Код Taxonomy_Helper::get_custom_taxonomies() Yoast 22.4

public function get_custom_taxonomies( $output = 'names' ) {
	return \get_taxonomies( [ '_builtin' => false ], $output );
}