manage_taxonomies_for_attachment_columns, $taxonomies, attachment
manage_taxonomies_for_attachment_columns, $taxonomies, attachment
Appears in: 7.0.3
Hook Type: filter
Displaying hooks found in version: 7.0.3apply_filters('manage_taxonomies_for_attachment_columns, $taxonomies, attachment') is found 1 times:
- /wp-admin/includes/class-wp-media-list-table.php line 382
* * @param string[] $taxonomies An array of registered taxonomy names to show for attachments. * @param string $post_type The post type. Default 'attachment'. */ $taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' ); $taxonomies = array_filter( $taxonomies, 'taxonomy_exists' ); foreach ( $taxonomies as $taxonomy ) { if ( 'category' === $taxonomy ) { $column_key = 'categories'; } elseif ( 'post_tag' === $taxonomy ) {