Glossary Term
get_attachment_taxonomies()
3 tags
1 category
get_attachment_taxonomies() — Retrieves taxonomies attached to given the attachment.
Inputs: $attachment (int|array|object): Attachment ID, data array, or data object. $output (string): Output type. ‘names’ to return an array of taxonomy names, or ‘objects’ to return an array of taxonomy objects. Default is ‘names’.
Returns string[]|WP_Taxonomy[]: List of taxonomies or taxonomy names. Empty array on failure.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
