During wordpress plugin development, Sometimes we need to remove the submenu with the same name as the mainmenu from sidebar

for example see the image

Web Tools ‹ Navaneeth — WordPress

And in-order to remove the menu which repeats and to look like this

‹ Navi — WordPress

we need to add this code to the plugin file or to the functions.php


Leave a Reply

Your email address will not be published. Required fields are marked *