Hide some links from my sub menu dashboard
-
Hello, everyone,
I would like to remove some links that appear in the user’s sub menu (on hover).
I tried to apply the code from the plugin documentation but it didn’t work (I think the code is out of date or wrong):
“add_filter(‘tutor_dashboard/nav_items/settings/nav_items’, function($nav) {
unset($nav[‘withdrawal’]);
return $nav;
});”I tried using another code that the plugin’s documentation shows and it worked, but it took away the options/links ALSO from within the dashboard page and that’s not what I want. I just want those options/links to be removed in the sub menu hover.
“add_filter(‘tutor_dashboard/nav_items’, ‘remove_some_links_dashboard’);
function remove_some_links_dashboard($links){
unset($links[‘reviews’]);
unset($links[‘wishlist’]);
return $links;
}”Can anyone help me?
- The topic ‘Hide some links from my sub menu dashboard’ is closed to new replies.