manage_taxonomies_for_attachment_columns filter-hook . WP 3.5.0
Filters the taxonomy columns for attachments in the Media list table.
Usage
add_filter( 'manage_taxonomies_for_attachment_columns', 'filter_function_name_3223', 10, 2 ); function filter_function_name_3223( $taxonomies, $post_type ){ // filter... return $taxonomies; }
- $taxonomies(string[])
- An array of registered taxonomy names to show for attachments.
- $post_type(string)
- The post type.
Default: 'attachment'
Changelog
Since 3.5.0 | Introduced. |
Where the hook is called
manage_taxonomies_for_attachment_columns
wp-admin/includes/class-wp-media-list-table.php 325
$taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' );