首页 WordPress函数大全 get_taxonomies_for_attachments()

get_taxonomies_for_attachments()

2020-05-01 / 2312阅 / 悠然

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

get_taxonomies_for_attachments( string $output = 'names' )

Retrieves all of the taxonomies that are registered for attachments.

描述

Handles mime-type-specific taxonomies such as attachment:image and attachment:video.

See also See also

  • get_taxonomies()

Top ↑

参数

$output

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

Default value: 'names'

返回

(string[]|WP_Taxonomy[]) Array of names or objects of registered taxonomies for attachments.

大家谈论
    我的见解