Hello, I added this to the user account menu, but I would like to hide this once the vendor has completed registration because after the vendor has registered the link no longer works…so I would like to hide it once they become vendors.
/* Add a register vendor link to the user account menu */
add_filter(
'hivepress/v1/menus/user_account',
function( $menu ) {
$menu['items']['vendor_register']=[
'label' => 'Create Vendor Profile',
'route' => 'vendor_register_profile_page',
'_order' => 123,
];
return $menu;
},
1000
);