mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Add inline documentation for the 'show_admin_column' argument added to register_taxonomy() in 3.5.
Also adds a 'show_admin_column' value to the defaults array. Props johnbillion. Fixes #26707. git-svn-id: https://develop.svn.wordpress.org/trunk@26912 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2fc50487ea
commit
707e91c1e8
@ -289,6 +289,8 @@ function is_taxonomy_hierarchical($taxonomy) {
|
||||
* * If not set, the default is inherited from public.
|
||||
* - show_tagcloud - Whether to list the taxonomy in the Tag Cloud Widget.
|
||||
* * If not set, the default is inherited from show_ui.
|
||||
* - show_admin_column - Whether to display a column for the taxonomy on its post type listing screens.
|
||||
* * Defaults to false.
|
||||
* - meta_box_cb - Provide a callback function for the meta box display.
|
||||
* * If not set, defaults to post_categories_meta_box for hierarchical taxonomies
|
||||
* and post_tags_meta_box for non-hierarchical.
|
||||
@ -336,6 +338,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
|
||||
'show_in_menu' => null,
|
||||
'show_in_nav_menus' => null,
|
||||
'show_tagcloud' => null,
|
||||
'show_admin_column' => false,
|
||||
'meta_box_cb' => null,
|
||||
'capabilities' => array(),
|
||||
'rewrite' => true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user