get_taxonomies_for_attachments

SummerySummery

Retrieves all of the taxonomies that are registered for attachments.

Syntax

get_taxonomies_for_attachments( string $output = 'names' )

DescriptionDescription

Handles mime-type-specific taxonomies such as attachment:image and attachment:video.

ParametersParameters

$output

(string) (Optional) The type of taxonomy output to return. Accepts 'names' or 'objects'.

Default value: 'names'

ReturnReturn

(string[]|WP_Taxonomy[]) Array of names or objects of registered taxonomies for attachments.

SourceSource

File: wp-includes/media.php


			

ChangelogChangelog

Changelog
Version Description
3.5.0 Introduced.

See alsoSee also

Scroll to Top