Yoast\WP\SEO\Helpers
Taxonomy_Helper::get_custom_taxonomies
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() Taxonomy Helper::get custom taxonomies Yoast 27.6
public function get_custom_taxonomies( $output = 'names' ) {
return \get_taxonomies( [ '_builtin' => false ], $output );
}