mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -63,14 +63,14 @@ function create_initial_post_types() {
|
||||
'query_var' => false,
|
||||
) );
|
||||
|
||||
register_post_type( 'menu_item', array( 'public' => false,
|
||||
'show_ui' => false,
|
||||
'_builtin' => true,
|
||||
'capability_type' => 'post',
|
||||
'hierarchical' => false,
|
||||
'rewrite' => false,
|
||||
'query_var' => false,
|
||||
) );
|
||||
register_post_type( 'nav_menu_item', array( 'public' => false,
|
||||
'show_ui' => false,
|
||||
'_builtin' => true,
|
||||
'capability_type' => 'post',
|
||||
'hierarchical' => false,
|
||||
'rewrite' => false,
|
||||
'query_var' => false,
|
||||
) );
|
||||
|
||||
register_post_status( 'publish', array( 'label' => _x('Published', 'post'),
|
||||
'public' => true,
|
||||
|
||||
Reference in New Issue
Block a user