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_the_attachment_link, get_taxonomies, wp_ajax_query_attachments, is_local_attachment, get_taxonomy_labels

Top Google Results

User discussions

wpseek mobile