Hide Drafts in Menus

Description

If you unpublish a page or post, it still appears in your custom menus. This plugin automatically prevents pages/posts set to “draft” or “pending review” from appearing in custom menus on the site, while keeping their place in the menu structure. When they’re published, they’ll appear in the menu automatically.

This plugin also modifies the custom menu editing screen to clearly indicate the unpublished status of items in the menu.

NOTE: We are aware of a limitation in the plugin, that a page/post must be published to appear in the list of items you can select to add to the menu. We are working on a solution. In the meantime, the workaround is to temporarily publish the page/post, add it to the menu, and then set it back to “draft”.

Installation

  1. Upload the plugin files to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. There’s no step 3!

FAQ

Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. There’s no step 3!

Reviews

Very simple but works perfectly

Had a project where the client wanted to be able to add and hide menu items and pages and this allowed them to do that easily by changing the pages to draft status.

Far easier than allowing access to WP Nav Menus which most clients mess up!

Thank you!

This plugin helped me with a project I was working on for a client. Thanks for the plugin!

Read all 3 reviews

Contributors & Developers

“Hide Drafts in Menus” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Hide Drafts in Menus” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.0

  • Fixed issues that would trigger PHP notices on Appearance > Menus page.

1.0.0.2

  • Tested with WordPress 4.9.5.

1.0.0.1

  • Updated “Tested up to” to 4.7.
  • Added note about pages needing to be published temporarily to appear in the list of options.

1.0.0

Initial release in WordPress Plugin Directory.