Home Support Extensions Paid Listings Hide/remove Packages menu item

Hide/remove Packages menu item

  • Author
    Posts
  • nan91

    Hi!

    I need the Paid Listings addon, but I don’t need to show the “Packages” menu item.

    Are there any snippets to hide/remove “Packages” menu item from the user_account_page?

    Thanks for the help!

    ihor developer

    Please try using this PHP snippet:

    add_filter(
    	'hivepress/v1/menus/user_account',
    	function( $menu ) {
    		unset($menu['items']['user_listing_packages_view']);
    
    		return $menu;
    	},
            1000
    );
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.