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'.


Top ↑

Source

File: wp-admin/includes/class-wp-media-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.