Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_taxonomies_for_attachments()

3 tags 1 category

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

Inputs: $output (string): Optional. The type of taxonomy output to return. Accepts ‘names’ or ‘objects’. Default ‘names’.

Returns string[]|WP_Taxonomy[]: Array of names or objects of registered taxonomies for attachments.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…