get_taxonomies_for_attachments
get_taxonomies_for_attachments ( $output = 'names' )
Parameters:- (string) output Optional. The type of taxonomy output to return. Accepts 'names' or 'objects'. Default 'names'.
See:Returns:- (string[]|WP_Taxonomy[]) Array of names or objects of registered taxonomies for attachments.
Defined at: - Introduced in WordPress: 3.5.0
- Deprecated in WordPress: —
Description
Retrieves all of the taxonomies that are registered for attachments.Handles mime-type-specific taxonomies such as attachment:image and attachment:video.