manage_taxonomies_for_attachment_columns

manage_taxonomies_for_attachment_columns

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('manage_taxonomies_for_attachment_columns') is found 1 times:

  • /wp-admin/includes/class-wp-media-list-table.php line 351
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    *
     * @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 ) {