Add description argument to register_taxonomy().
props aaronholbrook. fixes #24808. git-svn-id: http://core.svn.wordpress.org/trunk@24833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7d35419e62
commit
ac1f98d4ce
|
@ -300,6 +300,8 @@ function is_taxonomy_hierarchical($taxonomy) {
|
||||||
*
|
*
|
||||||
* labels - An array of labels for this taxonomy. You can see accepted values in {@link get_taxonomy_labels()}. By default tag labels are used for non-hierarchical types and category labels for hierarchical ones.
|
* labels - An array of labels for this taxonomy. You can see accepted values in {@link get_taxonomy_labels()}. By default tag labels are used for non-hierarchical types and category labels for hierarchical ones.
|
||||||
*
|
*
|
||||||
|
* description - A short descriptive summary of what the taxonomy is for. Defaults to blank.
|
||||||
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Taxonomy
|
* @subpackage Taxonomy
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
|
@ -329,6 +331,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
|
||||||
'labels' => array(),
|
'labels' => array(),
|
||||||
'capabilities' => array(),
|
'capabilities' => array(),
|
||||||
'show_in_nav_menus' => null,
|
'show_in_nav_menus' => null,
|
||||||
|
'description' => '',
|
||||||
);
|
);
|
||||||
$args = wp_parse_args($args, $defaults);
|
$args = wp_parse_args($args, $defaults);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue