WPDev.one
Core Function
View Source on Trac ↗

get_taxonomies_for_attachments()

get_taxonomies_for_attachments( mixed $output = 'names' )

Retrieves all of the taxonomies that are registered for attachments.

Parameters 1 required

Name / Type Description
string

$output Optional. The type of taxonomy output to return. Accepts 'names' or 'objects'. Default 'names'.

Required

Return Value

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

Function Information

Since Version
3.5.0
Source File
wp-includes/media.php
Advertisement