Make WordPress Core


Ignore:
Timestamp:
09/08/2012 03:18:36 AM (13 years ago)
Author:
nacin
Message:

Allow easy registration of taxonomy columns on post (and custom post type) list table screens.

To register a column for a list table, use the new manage_taxonomies_for_{$post_type}_columns
filter. Introduces show_admin_column => true for register_taxonomy(), which automatically
displays that column on all associated post types.

props jtsternberg, SergeyBiryukov for initial patches.
fixes #21240.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r21766 r21788  
    4848        'public' => true,
    4949        'show_ui' => true,
     50        'show_admin_column' => true,
    5051        '_builtin' => true,
    5152    ) );
     
    5758        'public' => true,
    5859        'show_ui' => true,
     60        'show_admin_column' => true,
    5961        '_builtin' => true,
    6062    ) );
Note: See TracChangeset for help on using the changeset viewer.