manage_taxonomies_for_{$post_type}_columns

manage_taxonomies_for_{$post_type}_columns

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('manage_taxonomies_for_{$post_type}_columns') is found 1 times:

  • /wp-admin/includes/class-wp-posts-list-table.php line 689
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    *
     * @param string[] $taxonomies Array of taxonomy names to show columns for.
     * @param string   $post_type  The post type.
     */
    $taxonomies = apply_filters( "manage_taxonomies_for_{$post_type}_columns", $taxonomies, $post_type );
    $taxonomies = array_filter( $taxonomies, 'taxonomy_exists' );
     
    foreach ( $taxonomies as $taxonomy ) {
        if ( 'category' === $taxonomy ) {
            $column_key = 'categories';
        } elseif ( 'post_tag' === $taxonomy ) {