In this article, I am going to show you how you can easily remove invalid menu items from the WordPress website.
If we remove any page from WordPress website it goes to the trash. And if that page was added in the navigation menu they still display as invalid menu items in the backend menu page. That is not a problem as long as the removed pages aren’t showing in the frontend.
The problem is when we want to remove the invalid menu items from the selected menu. There is no option to remove all the invalid menu items easily. You have to remove every single menu item one by one and that is so time consuming and boring.
So, I created a simple plugin to remove the invalid menu items in one click. The plugin is called Remove invalid menu items. All you have to do is install and activate the plugin then go to the navigation menu page. In the menu edit page, you will find a button called ‘Delete invalid menu items’ beside the Save menu button. Just click on the button and all the invalid menu items will be removed.