跳到内容

Astro Hide Unpublished Post Types From Menu

v2.0.0

Alian Schiavoncini · 2024年7月30日 上架

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

正在使用
10 以下
评分
暂无
累计下载
1,807
最近更新
2026年11月18日
需要 WordPress 5.2+已测试到 7.1.5PHP 7.4+

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums