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:

Description

Retrieves all of the taxonomies that are registered for attachments.Handles mime-type-specific taxonomies such as attachment:image and attachment:video.

Related Functions

get_taxonomies, get_the_attachment_link, wp_ajax_query_attachments, get_taxonomy_labels, is_local_attachment

Top Google Results

User discussions

wpseek mobile