2020-05-01 / 3786阅 / 悠然
Retrieves taxonomies attached to given the attachment.
(int|array|object)
(Required)
Attachment ID, data array, or data object.
(string)
(Optional)
Output type. 'names' to return an array of taxonomy names, or 'objects' to return an array of taxonomy objects. Default is 'names'.
Default value: 'names'
(string[]|WP_Taxonomy[]) List of taxonomies or taxonomy names. Empty array on failure.