Remove invalid menu items

Plugin Banner

Remove invalid menu items

by Shojib Khan

Download
Description

This is a very simple plugin to remove invalid navigation menu items in one click. When we move pages to the trash but they still display in the menu. This is so boring deleting all the invalid menu items one by one and time consuming too.

So, I have created this plugin so that WordPress users can easily remove the invalid menu items. Just install and activate the plugin then go to the menu you want to edit. You will find a button beside Save menu to remove the items. This is extremely helpful when you install theme demo content and remove the demo pages.

  1. Upload the plugin files to the /wp-content/plugins/remove-invalid-menu-items directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Navigate to Appearance > Menus to use the plugin
  1. The "Delete invalid menu items" button in the menu editor

    The "Delete invalid menu items" button in the menu editor

How do I use this plugin?

After activation, go to Appearance > Menus. You’ll see a “Delete invalid menu items” button next to the “Save Menu” button. Click it to remove all invalid menu items.

What are invalid menu items?

Invalid menu items are menu entries that point to deleted pages, posts, or other content that no longer exists on your site.

Is this plugin safe to use?

Yes, the plugin only removes menu items that point to non-existent content. Your valid menu items remain untouched.

It worked!

By sunnycreativegal on November 18, 2020

Thank you! I inadvertently installed all page templates on a project. I had dozens of pages I deleted and then was then unable to remove from the menu. Your plugin saved the day. (WordPress 5.5.3 using WPBakery and MoveDo)

1.3.1

  • Fixed fatal error issue
  • Improved plugin stability
  • Added support for WordPress 6.8.3

1.3.0

  • Bump support version to WordPress 6.0.1
Back to top