We can use the register_post_type_args
filter to adjust how the post
post type is displayed in the backend with e.g.:
add_filter( 'register_post_type_args', function( $args, $name )
{
if( 'post' === $name )
{
// $args['show_ui'] = false; // Display the user-interface
$args['show_in_nav_menus'] = false; // Display for selection in navigation menus
$args['show_in_menu'] = false; // Display in the admin menu
$args['show_in_admin_bar'] = false; // Display in the WordPress admin bar
}
return $args;
}, 10, 2 );
More info on the parameters here in the Codex.
Related Posts:
- Changing the Order of Admin Menu Sections?
- Adding an Arbitrary Link to the Admin Menu?
- Add data-icon input to WordPress custom menu links
- Add separator to admin submenu
- Renaming a WordPress Admin Menu
- How do I fix this error: Warning: invalid argument supplied for foreach()?
- How to add menu to Dashboard that can be viewed by all users
- Make Theme automatically choose default nav menu
- Move admin menu at the end
- Hide pages depending on role
- How to display custom post meta in the appearance->menus page
- How can I get an array/list of all current WordPress Admin Menu items?
- how to only add a top-level admin menu without it creating a sub-level-menu
- Remove Metabox from Menus screen
- Sort wp_nav_menu() by menu order
- Custom Admin Menu Order
- Hiding Admin Page While Keeping Menu Expanded
- Get admin menu link
- Hook for number of items in Appearance > Menus > CustomPostType > View All [duplicate]
- Filter for Admin Nav Menus Drop Down
- SlideDeck 2, make back-end visible for admins only
- Limit the menu child levels under “admin > appearance > menus”
- Ad custom admin page like WordPress customizer [closed]
- Admin menu structure
- Appearance Menus Screen – menu item drop down menu not functioning
- Adding an admin menu page showing the link twice – how to solve this?
- Admin-ajax.php 500 error when Add to menu is clicked in admin
- Can I have custom post types in “Add menu items” on in the Admin > Appearance > Menu
- Add Labels to Admin Menu ( How To )
- How can I make a menu link visible only to admins (without plugins)?
- Adding top level items in the admin menu that link to a post
- How to get submenu of admin menu?
- Strange menu behaviour wordpress admin [duplicate]
- Adding CSS-class to WordPress Menu in backend
- Menu deletes all items and position – wordpress bug?
- Plugins & Setting Menu Items Removed From Admin Panel
- add_menu_page does not render the expected result
- Admin Menu Hack (Left side in Dashboard)
- Lost admin “manage_link” capability WordPress. No “Links” menu item in admin menu
- Admin menu in different languages
- Need to remove the admin menu item from a be theme in wordpress
- Add category label for appearance > menus items
- Removing wp admin menu item on top bar of admin backend
- Links in new menu don’t work
- wp_is_mobile() inside js
- Appearance > Menus
- Customizing label/title output of admin nav_menu selecter
- Is It Possible To A Link To The Homepage From The Admin Sidebar?
- Query for menus in backend (BE)
- List of WordPress menu item indices?
- How do I fix the URL used in the WordPress admin menu for customize.php
- How can I disable sorting/dragging of a menu item in the custom menu admin?
- How to change the markup created by menu item only on chosen items?
- How to change WP menu item type?
- Unregister Nav Menu from Child-Theme
- Keeping parent menu items active in child pages
- Way to bulk delete menu items in new 3.x Appearance > Menus system?
- Pass a parameter to a menu walker
- Menu is not visible in appearance
- Customize the menu by adding items
- wp_nav_menu log in/out link?
- How to insert custom code into wp_nav_menu structure?
- Get number of root elements in walker class
- Operable default menu *and* custom 3 menu
- HTML to WordPress Menu convert
- How to handle many different menus?
- wp_page_menu not working right?
- Adding existing links to custom navigation menus?
- How to truncate menu label in wordpress?
- Remove first separator in wp_nav_menu
- wp_nav_menu check both hierarchy fail?
- menu-item class missing on wordpress menu
- Active class to current link
- Making pages in a menu appear conditionally
- Modify the output of wp_nav_menu in a very specific way?
- How to add social buttons like facebook and twitter in the footer of a theme?
- WordPress Menu – creating a fake link [closed]
- How to add an archive page to WordPress menus (nav_menu)?
- Custom items for Menus
- dot.com/car1 does work, but dot.com/transport/car1 doesn’t work
- WP pages content is missing in frontend
- Dashicons not showed for admin menu
- How to select particular menu position in wordpress?
- Menus not visible in Appearance after being registered
- Error: Declaration of MyClass::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl()
- Cannot add home page url to menu with #
- Having an issue with wp_nav_menu displaying custom navigation
- Add dynamic content block to nav section generated by custom walker
- Extend Individual Menu on Page Function to individual Submenue on Page Function?
- How can I modify wp_nav_menu with walker?
- menu items outside of blog
- How to insert date in topNav
- Change sub-menu css class
- How to add an tag when a menu item is a dropdown(or has a sub-menu) [duplicate]
- How to display a submenu as a popup when clicking a button?
- Primary menu shortcode name
- register_nav_menus and wp_nav_menu issue, not displaying independent menus
- Convert a custom bootsrap based menu to wordpress nav walker
- How do I get the menu items based on name or ID?
- Problems with the navigation menu