Yoast\WP\SEO\Helpers

Taxonomy_Helper::get_public_taxonomies()publicYoast 1.0

Returns an array with the public taxonomies.

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

Хуков нет.

Возвращает

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

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

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

Код Taxonomy_Helper::get_public_taxonomies() Yoast 22.3

public function get_public_taxonomies( $output = 'names' ) {
	return \get_taxonomies( [ 'public' => true ], $output );
}