# Admin Column for a Taxonomy Added by a Plugin or Theme

> Shows a column for any taxonomy in its post type's admin list, even when the plugin or theme that registered it left the column out.

- Type: PHP
- Runs: Run everywhere
- Category: [Custom Post Types & Fields](https://wpide.com/library/category/post-types/)
- Tags: taxonomies, admin, columns
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/taxonomy-admin-column-any/

## Code

```php
// Taxonomies that should get an admin column.
$wpide_tax_columns = array( 'portfolio_category', 'product_brand' );

add_filter( 'register_taxonomy_args', function ( $args, $taxonomy ) use ( $wpide_tax_columns ) {
    if ( in_array( $taxonomy, $wpide_tax_columns, true ) ) {
        $args['show_admin_column'] = true;
    }

    return $args;
}, 10, 2 );
```

## Notes

List taxonomy names (shown in the URL when you edit its terms, e.g. taxonomy=portfolio_category).

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Admin Column for a Taxonomy Added by a Plugin or Theme" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
