Use nav_menu as the taxonomy name and nav_menu_item as the post type. Set object_id in postmeta. see #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -38,11 +38,11 @@ function create_initial_taxonomies() {
|
||||
'_builtin' => true
|
||||
) ) ;
|
||||
|
||||
register_taxonomy( 'menu', 'menu_item', array( 'hierarchical' => false,
|
||||
'query_var' => false,
|
||||
'rewrite' => false,
|
||||
'show_ui' => false,
|
||||
) ) ;
|
||||
register_taxonomy( 'nav_menu', 'nav_menu_item', array( 'hierarchical' => false,
|
||||
'query_var' => false,
|
||||
'rewrite' => false,
|
||||
'show_ui' => false,
|
||||
) ) ;
|
||||
|
||||
register_taxonomy( 'link_category', 'link', array( 'hierarchical' => false,
|
||||
'label' => __('Categories'),
|
||||
|
||||
Reference in New Issue
Block a user