Hide menu from admin
-
I’d like to hide the menu that was recently added (I’m totally happy finding the settings on the Plugins page). I’d rather not install a plugin for this. I tried this code and it didn’t work. Can someone point me in the right direction?
add_action('admin_init', function () {
remove_menu_page('admin.php?page=wpfactory-cross-selling');
});
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.