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: https://develop.svn.wordpress.org/trunk@13284 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-02-21 18:24:41 +00:00
parent 4df0240736
commit 6c64fffe3a
4 changed files with 61 additions and 68 deletions
+5 -5
View File
@@ -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'),