Have you tried show_in_menu
instead?
register_post_type( 'companies', array(
'show_in_menu' => LG_ADMIN_MENU,
'show_ui' => true,
'...',
));
Related Posts:
- How to implement a customizable free OpenID authentication?
- Difference between add_filter and apply_filters
- Remote upload file to server B
- Creating Unique Post URLs for A/B Testing… Is this even possible?
- How to delete the Hello Dolly plugin automatically?
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- How to enable edit button in the theme’s customize UI?
- Open external links in a new window
- How can I limit functionality in one version of a plugin?
- How to add usermeta to “Notice of Email Change” email message
- What’s the recommended process for organising collaborative posting?
- Any way to use a custom Parameter for youtube embed without using an iframe?
- How to list the Hooks and order of execution in current loading page? [duplicate]
- Updating post meta for custom post types
- WordPress 3.1 and Disqus throws Warning: number_format() error in Posts List
- Is there a plugin to display certain posts on certain pages? [closed]
- REST-API: extend media-endpoint
- How can I rewrite a plugin generated URL?
- How to make sexy bookmarks plugin work in WPMU
- register_post_status invisible but searchable
- Can’t create term for product attribute
- Leveraging WordPress Comments on Custom Plugin Object page
- Debugging Technique Question re: functions.php
- Is there a way to alter the order in which the plugins appear in the page?
- How to check what plugins used to be on a WordPress installation?
- Possible to replicate economist.com’s debate section in wordpress? [closed]
- FacetWP group listings by custom field [closed]
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Custom Field Template seriously messed up in WP 3.1.1
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- I have no idea “How change font for elements in widget?”
- Remove Duplicator plugin from admin menu if not an administrator
- Add a custom form on the post-new.php admin page
- Edit Yoast SEO breadcrumbs output [closed]
- className not populating in custom block
- In the archive widget, how do I sort in between two years?
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- creating a custom shop page display on archive woocommerce
- polylang + category/tag custom language link
- How do I make a child theme I made POST through a 3rd party plugin?
- How to redirect users to their profile after they successfully edit their profile
- “No Add Button” for me to customize my WordPress with themes and pluggins
- Translation plugin to translate another plugins
- Creating Featured Content Boxes
- Text change in Advanced Customs Fields [closed]
- Loop in elementor custom widget not working
- Moving FB comments at the end of page
- Customizing a blog page layout
- .php file for woocommerce edit category? [closed]
- Hide a certain category name from Related Posts
- how to add custom info on author page? plugin, child theme?
- How to handle a WordPress blog with articles in different languages?
- display unique post per category
- Call javascript functions from each page
- How to display an alert when deleting a plugin?
- unregister a sidebar widget
- How to disable Wp-PageNavi at the top of the page
- 404 errors when updating options in admin dashboard
- Display WordPress comments before the plugins?
- Mobilepress fails to translate short codes
- woocommerce remove coupon link does not work
- How to hide featured images of all posts falling under the same category in wordpress?
- Getting infinite scrolling working on my custom template
- Display posts by alphabetical order
- Making a list that can be filtered by category/tags
- Adding discount functionality to the cart
- Changing the CSS with a plugin
- Precheck fields when I add a new post
- Cannot view Custom Post Type no matter what I try
- Custom wp_list_tables redirect on specfic page
- Custom shortcode being shown in WPBakery backend rather than the block
- Issue calling my functions on Plugin activate in WordPress
- Paid Membership Pro displaying a user name in PHP
- Automatically check “Enable stock management at product level” to the existing products?
- custom/automatic export function – one post at a time?
- Custom SportsPress list
- Creating Nested custom fields
- How to restrict “too soon” downloads with a general rule?
- Display Powerpress media url
- Hide some shortcodes on posts from back-end
- Plugin does not create a custom table upon activation
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- Plugin program: JQuery not working in this plugin
- admin panel save option with ajax
- Get page type to display content
- How to fix vanilla comments extra iframe space
- Woocommerce quick checkout form [closed]
- How to add image for custom taxonomy
- Social network plugins for WordPress [closed]
- How to avoid conflict between plugin and its edited version?
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- Wrapping code in an if block
- How to give different user access to different people?
- How can I properly sanitize the update_option in WordPress?
- Create Custom Coupon Type
- Using ACF to allow user to add and edit multiple saved forms