manage_taxonomies_for_attachment_columns WordPress Filter Hook
The manage_taxonomies_for_attachment_columns hook allows you to add taxonomy columns to the Media Library list view. This hook is useful for displaying custom taxonomies associated with attachments (e.g. tags or categories).
apply_filters( 'manage_taxonomies_for_attachment_columns', string[] $taxonomies , string $post_type ) #
Filters the taxonomy columns for attachments in the Media list table.
Parameters
- $taxonomies
(string[])An array of registered taxonomy names to show for attachments.
- $post_type
(string)The post type. Default 'attachment'.
Source
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |