Astro Hide Unpublished Post Types From Menu
v2.0.0Alian Schiavoncini · 2024年7月30日 上架
Hides from menus all post_types that have a status other than published.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 1,807
- 最近更新
- 2026年11月18日
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.