Title: Hide Drafts in Menus
Author: Room 34 Creative Services, LLC
Published: <strong>10. November 2016</strong>
Last modified: 18. Mai 2026

---

Plugins suchen

![](https://ps.w.org/hide-drafts-in-menus/assets/icon.svg?rev=2600650)

# Hide Drafts in Menus

 Von [Room 34 Creative Services, LLC](https://profiles.wordpress.org/room34/)

[Herunterladen](https://downloads.wordpress.org/plugin/hide-drafts-in-menus.1.6.0.1.zip)

 * [Details](https://de.wordpress.org/plugins/hide-drafts-in-menus/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/hide-drafts-in-menus/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/hide-drafts-in-menus/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/hide-drafts-in-menus/#developers)

 [Support](https://wordpress.org/support/plugin/hide-drafts-in-menus/)

## Beschreibung

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!

## Rezensionen

![](https://secure.gravatar.com/avatar/d4ec82a6c6007683924d68ec6cf6cc2a453537b02885d1d97ed667df77a66009?
s=60&d=retro&r=g)

### 󠀁[Excellent. Very useful plugin.](https://wordpress.org/support/topic/excellent-very-useful-plugin-6/)󠁿

 [michaelquinn](https://profiles.wordpress.org/michaelquinn/) 15. Mai 2024

One of those plugins you can't believe hasn't been rolled into core by now. I've
been using it as one of my standard install plugins and it's very helpful for rolling
out sites with multiple draft pages etc. Has worked perfectly for years. Had a slight
problem this last week but the developer fixed it within 12 hours of me posting 
about it. Can't ask for more than that.

![](https://secure.gravatar.com/avatar/f2949e1420c186ba7fe9eafb8f5c406b6b29ddebb639e7c7da6f93d39b784643?
s=60&d=retro&r=g)

### 󠀁[Should be part of WordPress core](https://wordpress.org/support/topic/should-be-part-of-wordpress-core-4/)󠁿

 [Martin Sauter](https://profiles.wordpress.org/martinsauter/) 17. Februar 2024

It's hard to believe that this functionality is not part of WordPress core, since
it simply does not make sense to show a menu item which links to an unpublished 
page.

![](https://secure.gravatar.com/avatar/15bac605056cb3c3d6374c76f2793c8f385b65a230d7cc060fab72064b1ccc0b?
s=60&d=retro&r=g)

### 󠀁[Very helpfull!](https://wordpress.org/support/topic/very-helpfull-108/)󠁿

 [Bogdan](https://profiles.wordpress.org/bogdanguenther/) 21. September 2023

Does what it says, I could easily extend it to hide also private posts.

![](https://secure.gravatar.com/avatar/667216bf509797aefe496a81ae3af56fd8200b378994c13a22a5593a63b9be41?
s=60&d=retro&r=g)

### 󠀁[Perfect Plugin](https://wordpress.org/support/topic/perfect-plugin-975/)󠁿

 [mighty2003](https://profiles.wordpress.org/mighty2003/) 29. Dezember 2020

This Plugin makes exactly what i'm looking for. But it's special, that this plugin
is necessary, because that should be a part of the stock WP. and it's very easy,
install, run, done!

![](https://secure.gravatar.com/avatar/4b43e81f9d0ecccff0e1174f45eca74ffeae3ce2468440e4bd4f947f10e35813?
s=60&d=retro&r=g)

### 󠀁[BRILLIANT](https://wordpress.org/support/topic/brilliant-1109/)󠁿

 [karenwhitt](https://profiles.wordpress.org/karenwhitt/) 16. April 2019

Thanks so much – i had a whole pile of prebuilt pages I added in my new theme which
threw out my menu – installed this and – GONE – thanks so much

![](https://secure.gravatar.com/avatar/84e7eeb4f0eca9fefbd5359eee308f808fbae7a9eb8be2bebad8657c3fb5dad0?
s=60&d=retro&r=g)

### 󠀁[It works like a charm](https://wordpress.org/support/topic/it-works-like-a-charm-36/)󠁿

 [ienaxxx](https://profiles.wordpress.org/ienaxxx/) 30. März 2019

It works prefectly without any configuration. Install it, activate it, done. Thanks
to the developer. 🙂

 [ Alle 9 Rezensionen lesen ](https://wordpress.org/support/plugin/hide-drafts-in-menus/reviews/)

## Mitwirkende und Entwickler

„Hide Drafts in Menus“ ist Open-Source-Software. Folgende Menschen haben an diesem
Plugin mitgewirkt:

Mitwirkende

 *   [ Room 34 Creative Services, LLC ](https://profiles.wordpress.org/room34/)

[Übersetze „Hide Drafts in Menus“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/hide-drafts-in-menus)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/hide-drafts-in-menus/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/hide-drafts-in-menus/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/hide-drafts-in-menus/)
per [RSS](https://plugins.trac.wordpress.org/log/hide-drafts-in-menus/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 1.6.0.1 – 2026.05.18

 * Refactored `r34hdm_get_unpublished_items()` function to retrieve non-published
   posts using `get_posts()` function instead of a direct SQL query. (Note: The 
   previous direct SQL query allowed us to limit the returned list to posts that
   were already confirmed to be in the menu; however, this method allows for a single
   query per page rather than one for each menu, which may offset any performance
   impact.)
 * Miscellaneous tweaks to pass [Plugin Check](https://wordpress.org/plugins/plugin-check/)
   tests.
 * Bumped „tested up to“ to 7.0.
 * Updated copyright year.

#### 1.5.1 – 2024.05.14

 * Fixed an issue that would cause categories to be hidden. Added a check to ensure
   that the logic for hiding menu items only applies to items that are a post type(
   e.g. post, page, custom post type), not taxonomies or other types of objects.
 * Changed CSS styling for hidden items on the admin Menus page to match the default
   WordPress styling for deleted items.
 * Bumped „tested up to“ to 6.5.3.

#### 1.5.0 – 2023.11.01

 * Changed SQL query to simply look for all posts that are _not_ set to a status
   of `publish`, rather than the previous check for a few specific status values.
 * Removed now-redundant post status text on menu editing screen (WordPress now 
   displays the status rather than the post type for non-published menu items) and
   changed visual appearance to a light red background and partial opacity.

#### 1.4.1 – 2023.07.23

 * Fixed bug that prevented draft page CSS from being applied for menus that are
   not assigned to a theme menu location.
 * Updated „tested up to“ to 6.3.

#### 1.4.0

 * Added global `$r34hdm_results` variable to eliminate duplicate queries, resulting
   in a slight performance increase.
 * Updated „tested up to“ to 5.8.1.

#### 1.3.1

 * Fixed bug that would return a PHP warning if the menu is empty. In some cases
   this may have been breaking the page preview in the Customizer.
 * Updated „tested up to“ to 5.3.

#### 1.3.0

 * Added rekey array of menu items after removing hidden items.
 * Added `wp_nav_menu_objects` action.

#### 1.2.1

 * Added ‚future‘ status to pages hidden in menus.

#### 1.2.0.1

 * Fixed database error message that occurred when there were no unpublished items.

#### 1.2.0

 * Added ‚trash‘ status to pages hidden in menus.

#### 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.

## Meta

 *  Version **1.6.0.1**
 *  Zuletzt aktualisiert **vor 5 Monaten**
 *  Aktive Installationen **1.000+**
 *  WordPress-Version ** 4.0 oder höher **
 *  Getestet bis **7.0.7**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/hide-drafts-in-menus/)
 * Schlagwörter
 * [drafts](https://de.wordpress.org/plugins/tags/drafts/)[menus](https://de.wordpress.org/plugins/tags/menus/)
   [pages](https://de.wordpress.org/plugins/tags/pages/)[unpublished](https://de.wordpress.org/plugins/tags/unpublished/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/hide-drafts-in-menus/advanced/)

## Bewertungen

 5 von 5 Sternen.

 *  [  9 5-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/hide-drafts-in-menus/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/hide-drafts-in-menus/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/hide-drafts-in-menus/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/hide-drafts-in-menus/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/hide-drafts-in-menus/reviews/?filter=1)

[Deine Rezension](https://wordpress.org/support/plugin/hide-drafts-in-menus/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/hide-drafts-in-menus/reviews/)

## Mitwirkende

 *   [ Room 34 Creative Services, LLC ](https://profiles.wordpress.org/room34/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/hide-drafts-in-menus/)

## Spenden

Möchtest du die Weiterentwicklung dieses Plugins unterstützen?

 [ Für dieses Plugin spenden ](http://room34.com/donation)