Shed Menu
Show or hide WordPress menu items based on login status, user role, or scheduled date range. Adds conditional visibility to your navigation.
Choix solide
Shed Menu is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 2 weeks ago, and scores 64/100 on our health check.
- Développé activement — Dernière mise à jour il y a 2 semaines
- Testé avec le dernier WordPress (7.1)
- Petite base d'utilisateurs (<10 installations actives)
- Très peu de critiques jusqu'à présent
- Nécessite PHP 8.1 ou plus récent
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Shed Menu stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| conditionnel | >100 |
| menu | >100 |
| la navigation | >100 |
| rôle | >100 |
| visibilité | >100 |
About Shed Menu
From the official readme · v0.1.8Description
Shed Menu adds visibility conditions to WordPress navigation menu items. You can show or hide each item based on three conditions:
- Login status (logged in / logged out / everyone)
- Date range (start datetime, end datetime)
- User roles (administrator, editor, author, contributor, subscriber, or custom roles)
All conditions are optional and combined with AND logic. This plugin reads the current user’s role information via wp_get_current_user() to evaluate role-based conditions.
Important: this is display control, not access control
Shed Menu hides menu items, blocks, and shortcode content from output. It does not restrict access to the underlying page, post, or URL. A visitor who knows or guesses the direct URL can still open it even if the menu link to it is hidden. Do not rely on Shed Menu to protect private or paid content — use post visibility settings (Private / Password protected) or a membership plugin for that.
Three ways to use
- Standard menus — Open Appearance → Menus, expand any item, and set the conditions inline.
- Hand-coded themes — Use the helper function
shedmenu_visible()in yourheader.phpor other template files. - Block editor — Wrap any blocks in the “Shed Menu — Conditional” block to show/hide them based on the same conditions.
Helper function example
<?php if ( shedmenu_visible( [ 'login' => 'in' ] ) ) : ?>
<li><a href="/mypage/">My Page</a></li>
<?php endif; ?>
Exemple de shortcode
[shedmenu_visible login="in" start="2026-04-01" end="2026-04-30" roles="administrator"]
This content is only visible to administrators between April 1 and April 30.
[/shedmenu_visible]
日本語の説明
WordPress 標準ナビゲーションメニューに、メニュー項目単位の表示条件を追加します。
- ログイン状態(ログイン中 / ログアウト中 / 全員)
- 表示期間(開始日時・終了日時)
- ユーザーロール(管理者 / 編集者 / 投稿者 等)
全ての条件は任意で、AND 条件で組み合わされます。
外観 → メニュー画面で各項目に条件を設定できます。テーマで wp_nav_menu() を使わず HTML 直書きしている場合は shedmenu_visible() ヘルパー関数を使ってください。Gutenberg では「Shed Menu — Conditional」ブロックで任意のブロック群を条件表示にできます。
重要: これは「表示の制御」であり「アクセス制限」ではありません。 Shed Menu はメニュー項目・ブロック・ショートコードの内容を出力しないようにするだけで、リンク先のページや投稿・URL 自体へのアクセスを制限するものではありません。メニューを非表示にしても、URL を直接知っている(または推測できる)訪問者はそのページを開けます。非公開にしたい・有料会員限定にしたいコンテンツの保護には、投稿の公開状態(非公開・パスワード保護)や会員制プラグインを使ってください。
Third-Party Services
This plugin does not connect to any external services. All processing happens on your own server.
Installation
- Upload the
shed-menufolder to the/wp-content/plugins/directory, or install via the Plugins screen in WordPress. - Activez le plugin via l'écran des plugins.
- Go to Appearance → Menus, expand any menu item, and configure visibility conditions.
Journal de modifications
Visibility conditions are no longer reset when a menu item is updated without the Shed Menu fields.
0.1.8
- Fixed: Unchecking both options on the settings screen saved both as ON (the browser sends nothing when both boxes are unchecked, and an empty submission was read as “use the defaults”). An empty submission now means both are OFF.
- Fixed: Updating a menu item without the Shed Menu fields (for example with WP-CLI, in the Customizer, from another plugin, or with the fields hidden in the settings) reset its saved visibility conditions. The conditions are now kept unless the Shed Menu fields are submitted.
- Fixed: A menu item whose stored end date was not a valid date was hidden; it is now treated as having no end date, like the shortcode and the block.
0.1.7
- [doc] Clarified in the description, FAQ, and manual that Shed Menu controls display only, not access — hiding a menu item does not restrict access to the linked page or URL.
- Confirmed compatibility with WordPress 7.1 (including the block editor changes shipped in 7.1.1).
0.1.6
- Confirmed compatibility with WordPress 7.0
0.1.5
- [fix] Block namespace renamed from
shed/conditionaltoshed-menu/conditionalfor WordPress.org compliance. - [fix] Helper function renamed from
shed_menu_visible()toshedmenu_visible()for prefix consistency. - [fix] Shortcode renamed from
[shed_menu_visible]to[shedmenu_visible]for prefix consistency. - [fix] readme.txt License field updated to SPDX identifier GPL-2.0-or-later.
0.1.4
- [perf] Child-item cascade removal now uses O(1) hash lookup instead of O(n) in_array; added circular-reference guard.
- [fix] Added update_meta_cache() call in filter_menu_items() to prevent N+1 meta queries on large menus.
- [fix] normalize_datetime() now validates month/day with checkdate() to reject invalid dates like 2026-02-30.
- [fix] array_filter() applied to roles meta in is_item_visible() to strip empty strings stored in serialized arrays.
- [fix] Added Domain Path header; renamed wp_localize_script object from wsmData to shedmenuData.
- [fix] Removed non-standard Description-ja header field.
0.1.2
- [fix] Constant
Shedmenu_PATHrenamed toSHEDMENU_PATHto follow WordPress naming conventions (uppercase). - [fix] Replaced
phpcs:disable/enableblocks with per-linephpcs:ignorein menu item save handler. Added English comment explaining core nonce pre-verification.
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best Shed Menu alternatives
Tous les plugins conditionnels →FAQ
Shed Menu: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Shed Menu free?
Yes. Shed Menu is free to download and use from the official WordPress.org plugin directory.
Is Shed Menu safe to use in 2026?
Shed Menu is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 2 weeks ago, and scores 64/100 on our health check.
How many websites use Shed Menu?
Shed Menu is active on <10 WordPress websites and has been downloaded 505 times since it launched in May 2026. It was downloaded 123 times in the last 30 days.
Does Shed Menu work with WordPress 7.1?
Yes. The developer has tested Shed Menu up to WordPress 7.1.5, the latest release. It requires WordPress 6.0 or newer.
What PHP version does Shed Menu need?
Shed Menu requires PHP 8.1 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Shed Menu last updated?
The latest version, 0.1.8, was released on November 19, 2026 (2 weeks ago).
Who makes Shed Menu?
Shed Menu is developed and maintained by teamstaccato.
What are the best alternatives to Shed Menu?
The most popular alternatives to Shed Menu are Dynamic Visibility for Elem… (40K+ installs), Ele Conditions for Elementor (2K+ installs) and Content Visibility for Divi… (2K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit



