跳到内容

Kneejerk Menu Swapper

v1.1.0

Rohjay · 2020年3月9日 上架

Contextually swaps menus in your theme for logged in users.

正在使用
10 以下
评分
暂无
累计下载
1,617
最近更新
2021年9月7日
需要 WordPress 5.0+已测试到 5.8.20PHP 7.2+

贡献者

截图

This is an example of what the plugin's config might look like for an install using the Twentytwenty Theme (after bonking save)
This is an example of what the plugin's config might look like for an install using the Twentytwenty Theme (after bonking save)
This shows you where it gets the list of menus you can use. Create, set them to locations in your theme, then come back to the KJD Menu Swapper page to configure which ones you'd like to swap to!
This shows you where it gets the list of menus you can use. Create, set them to locations in your theme, then come back to the KJD Menu Swapper page to configure which ones you'd like to swap to!

What is KJD Menu Swapper

This Plugin designed to allow you to contextualize the menus in your theme based on whether or not your visitor is logged in or not. It’s especially handy when this functionality is not built into your theme!

Please report any bugs or feel free to give me any feedback at https://kneejerk.dev/ via the contact form at the bottom. Alternatively, if you’re on Github, you can create an issue for me instead.

How does it work

After installing KJD Menu Swapper, you’ll see the Menu Swapper on the left admin navigation. Once you click there, you’ll be presented with the configuration for the plugin. This plugin does a few things to work:

  1. KJD grabs the menus that your theme has registered. Whatever your theme, if it registers its menus properly, KJD Menu Swapper will find it =]
  2. KJD then grabs the menus that you’ve configured under Appearance -> Menus
  3. If a menu is configured for a registered theme menu, KJD Menu Swapper will show you. Otherwise, it’ll say “None Selected”.
  4. In the dropdown next to what the theme is configured for, you have the option to “swap” it when the visitor is logged in.
  5. Click the enable checkbox for that menu to enable the swap.
  6. Next, bonk the “Save” button, and the menu swap is live!

Arbitrary section

A Note from the Author

It’s designed to be pretty easy to use, but this plugin will only get better with constructive feedback from people who are using it like you!

Sincerely,
Ryan “Rohjay” Oeltjenbruns

Plums

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

导航

说明

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

© 2026 Plums