get_attachment_taxonomies( int|array|object $attachment, string $output = 'names' )

Retrieves taxonomies attached to given the attachment.

25 related functions found for: get_attachment_taxonomies

Top ↑

Related terms found for this post

wp-parser-related-wordsattach, attachment, attachments, get, media-php, post-typ, post-type, taxonomi, taxonomies, taxonomy, wp-includes
wp-parser-packageMedia, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • attach
  • attachment
  • attachments
  • get
  • Media
  • media-php
  • post-typ
  • post-type
  • taxonomi
  • taxonomies
  • taxonomy
  • wp-includes
  • wp-includes/media.php
  • media

Top ↑

Description Description

Top ↑

Parameters Parameters


(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'

Top ↑

Return Return

(array) Empty array on failure. List of taxonomies on success.

Top ↑

Source Source

File: wp-includes/media.php


Top ↑

Changelog Changelog

Version Description
4.7.0 Introduced the $output parameter.
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.