hide some post types from nav menu admin panel (#113)
This commit is contained in:
parent
4b2379d8a7
commit
9efa3795a8
|
@ -121,6 +121,7 @@ class Collection extends Entity {
|
|||
],
|
||||
'map_meta_cap' => true,
|
||||
'capabilities' => (array) $capabilities,
|
||||
'show_in_nav_menus' => false,
|
||||
'supports' => [
|
||||
'title',
|
||||
'editor',
|
||||
|
|
|
@ -213,10 +213,13 @@ class Collections extends Repository {
|
|||
'edit_item' => __( 'Edit Collection', 'tainacan' ),
|
||||
'new_item' => __( 'New Collection', 'tainacan' ),
|
||||
'view_item' => __( 'View Collection', 'tainacan' ),
|
||||
'view_items' => __( 'View Collections', 'tainacan' ),
|
||||
'search_items' => __( 'Search Collections', 'tainacan' ),
|
||||
'not_found' => __( 'No Collections found ', 'tainacan' ),
|
||||
'not_found_in_trash' => __( 'No Collections found in trash', 'tainacan' ),
|
||||
'parent_item_colon' => __( 'Parent Collection:', 'tainacan' ),
|
||||
'all_items' => __( 'All Collections', 'tainacan' ),
|
||||
'archives' => __( 'Collections Archive', 'tainacan' ),
|
||||
'menu_name' => __( 'Collections', 'tainacan' )
|
||||
);
|
||||
}
|
||||
|
|
|
@ -139,6 +139,7 @@ class Filters extends Repository {
|
|||
'can_export' => true,
|
||||
'rewrite' => true,
|
||||
'map_meta_cap' => true,
|
||||
'show_in_nav_menus' => false,
|
||||
'capability_type' => Entities\Metadatum::get_capability_type(),
|
||||
'supports' => [
|
||||
'title',
|
||||
|
|
|
@ -241,6 +241,7 @@ class Metadata extends Repository {
|
|||
'can_export' => true,
|
||||
'rewrite' => true,
|
||||
'map_meta_cap' => true,
|
||||
'show_in_nav_menus' => false,
|
||||
'capability_type' => Entities\Metadatum::get_capability_type(),
|
||||
'supports' => [
|
||||
'title',
|
||||
|
|
|
@ -89,10 +89,13 @@ class Taxonomies extends Repository {
|
|||
'edit_item' => __( 'Edit Taxonomy', 'tainacan' ),
|
||||
'new_item' => __( 'New Taxonomy', 'tainacan' ),
|
||||
'view_item' => __( 'View Taxonomy', 'tainacan' ),
|
||||
'view_items' => __( 'View Taxonomies', 'tainacan' ),
|
||||
'search_items' => __( 'Search Taxonomies', 'tainacan' ),
|
||||
'not_found' => __( 'No Taxonomies found ', 'tainacan' ),
|
||||
'not_found_in_trash' => __( 'No Taxonomies found in trash', 'tainacan' ),
|
||||
'parent_item_colon' => __( 'Parent Taxonomy:', 'tainacan' ),
|
||||
'all_items' => __( 'All Taxonomies', 'tainacan' ),
|
||||
'archives' => __( 'Taxonomies Archive', 'tainacan' ),
|
||||
'menu_name' => __( 'Taxonomies', 'tainacan' )
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue