Astro Hide Unpublished Post Types From Menu

Hides from menus all post_types that have a status other than published.

Author:Alian Schiavoncini (profile at wordpress.org)
WordPress version required:5.2
WordPress version tested:7.1.4
Plugin version:2.0.0
Added to WordPress repository:30-07-2024
Last updated:18-11-2026
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:1 818
plugin download
Click to start download

The “Astro Hide Unpublished Post Types From Menu” plugin automatically hides from WordPress navigation menus the items that point to content with a status other than “published”: draft, pending, scheduled and private posts, pages and custom post types such as WooCommerce products. This prevents visitors from reaching “page not found” (404) errors and saves the site administrator from updating the menus every time a page is unpublished.

When a hidden item has published sub-items, they move up to the nearest visible level, so they stay reachable. Custom links, category and archive items are never hidden.

The plugin works with classic menus (Appearance > Menus and the Navigation Menu widget). The Navigation block of block themes already hides unpublished pages on its own.

Wordefence vendor verification key

gsphudo7by90lzwdlihyerqxbzj6jiln

License

This plugin is licensed under the GPLv2 or later. For more information, see the GPLv2 license.


FAQ
ChangeLog