How to show a menu item only in user menu not in vendor

Hello Hivepress team!

I have this snippet to add an item to a user menu but I only want them to be visible for users not for vendors how can I achieve that ?

add_filter(
	'hivepress/v1/menus/user_account',
	function( $menu ) {
		$menu['items']['listing_submit']=[
			'label' => 'Create a listing',
			'route' => 'listing_submit_page',
			'_order' => 1,
		];

		return $menu;
	},
	1000
);

Hi,

Sorry, there’s no simple code snippet for this, it would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work Fiverr - Freelance Services Marketplace

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.