get_taxonomies_for_attachments()
get_taxonomies_for_attachments( string $output = ‘names’ )
检索为附件注册的所有分类。
Retrieves all of the taxonomies that are registered for attachments.
说明(Description)
另见函数 get_taxonomies()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$output | (string) | 可选 | 要返回的分类法输出的类型。接受“名称”或“对象”。 |
返回(Return)
(string[]|WP_Taxonomy[])附件的已注册分类法的名称或对象数组。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.5.0 | wp-includes/media.php:3135 | 3 | 1 function |
get_taxonomies_for_attachments() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_taxonomies_for_attachments/