首页 WordPress函数大全 get_taxonomies()

get_taxonomies()

2020-05-01 / 2888阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_taxonomies( array $args = array(), string $output = 'names', string $operator = 'and' )

Retrieves a list of registered taxonomy names or objects.

描述

参数

$args

(array)
(Optional)
An array of key => value arguments to match against the taxonomy objects.

Default value: array()

$output

(string)
(Optional)
The type of output to return in the array. Accepts either taxonomy 'names' or 'objects'.

Default value: 'names'

$operator

(string)
(Optional)
The logical operation to perform. Accepts 'and' or 'or'. 'or' means>Default value: 'and'

返回

(string[]|WP_Taxonomy[]) An array of taxonomy names or objects.

大家谈论
    我的见解