User Menus – Nav Menu Visibility

外掛說明

User Menus is the perfect plugin for websites which have logged in users.

The plugin gives you more control over your nav menu by allowing you to apply visibility controls to menu items e.g who can see each menu item (everyone, logged out users, logged in users, specific user roles).

It also enables you to display logged in user information in the navigation menu e.g “Hello, John Doe”.

Lastly, the plugin allows you to add login, register, and logout links to your menu.

Full Feature List

User Menus allows you to do the following:

  • Display menu items to everyone
  • Display menu items to only logged out users
  • Display menu items to only logged in users
  • Display menu item to users with or without a specific user role.
  • Show a logged in user’s {avatar} in a menu item with custom size option.
  • Show a logged in user’s {username} in a menu item
  • Show a logged in user’s {first_name} in a menu item
  • Show a logged in user’s {last_name} in a menu item
  • Show a logged in user’s {display_name} in a menu item
  • Show a logged in user’s nickname} in a menu item
  • Show a logged in user’s {email} in a menu item
  • Add a logout link to menu (optional redirect settings)
  • Add a register link to menu (optional redirect settings)
  • Add a login link to menu (optional redirect settings)

** Includes a custom Menu Importer that will allow migrating User Menus data with the normal menu export/import.

Created by Code Atlantic

User Menus is built by the Code Atlantic team. We create high-quality WordPress plugins that help you grow your WordPress sites.

Check out some of our most popular plugins:

  • Popup Maker – #1 Popup & Marketing Plugin for WordPress
  • Ahoy – Automated Marketing Messages for WordPress
  • Content Control – Restrict Access to Pages and Posts

Requires WordPress 3.6 and PHP 5.3

螢幕擷圖

  • Limit menu item visibility based on logged in status, user role etc.
  • Display user information such as username, first name etc in your menu text.
  • Quickly insert login/logout links & choose where users will be taken afterwards.

安裝方式

Minimum Requirements

  • WordPress 3.6 or greater
  • PHP version 5.3 or greater

Installation

  • Install User Menus either via the WordPress.org plugin repository or by uploading the files to your server.
  • Activate User Menus.
  • Go to wp-admin > Appearance > Menus and edit your menu

If you need help getting started with User Menus please see FAQs which explains how to use the plugin.

常見問題集

How do I setup this plugin?
  • To setup the plugin, go to wp-admin > appearance > menu
  • Once a menu item has been added to the menu, expand the menu item and select which user group (everyone (default option), logged out users, logged in users (all logged in users or select specific user roles) can see the menu item
  • To show a logged in user’s information in a menu item, make a menu item only visible to logged in users and then click the grey arrow button to add a user tag (username, first_name, last_name, nickname, display_name, email) to the menu item label.
  • To add a logout/login link to menu, expand the “User Links” menu item type and then add the logout and/or login link to the menu.
Where can I get support?

If you get stuck, you can ask for help in the [User Menu Plugin Forum][support forum].

Where can I report bugs or contribute to the project?

Bugs can be reported either in our support forum or preferably on the User Menu GitHub repository (link to GitHub repo).

使用者評論

2020 年 2 月 25 日
I love this! Many thanks for the ease of use and the usefulness of this! It was what I didn't even realize I needed, and now I can't imagine being without it! 🙂
2020 年 2 月 19 日
A great plugin that does everything required. We are running a site that allows membership with some pages accessible only when logged in. Nice that we have the power to display a menu option to users who are logged in, not logged in, or remove the option entirely. The "Reset Password" came up. Other plugin used was UsersWP, and both function beautifully together.
閱讀全部 373 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈User Menus – Nav Menu Visibility〉的開發相關工作。

參與者

User Menus – Nav Menu Visibility 外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 User Menus – Nav Menu Visibility 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

v1.2.2 – 12/17/2019

  • Improvement: Login, Register & Logout menu links now hint at who they will be visible for.
  • Fix: Deprecation notice for sites using PHP 7.4

v1.2.1 – 10/20/2019

  • Fix: Bug in some sites where Menu Editor Description field was not shown.

v1.2.0 – 10/10/2019

  • Feature: Added option to show or hide the menu item for chosen roles.
  • Feature: Added Register user link navigation menu type with optional redirect.
  • Improvement: Added Freemius integration to allow for future premium offerings
  • Tweak: Updates brand from Jungle Plugins to Code Atlantic (nothing has changed, just the name).
  • Tweak: Minor text and design changes.
  • Fix: Bug where missing data in menu items caused an error to be thrown in edge cases.

v1.1.3

  • Improvement: Corrected usage of get_avatar to ensure compatibility with 3rd party avatar plugins.

v1.1.2

  • Improvement: Made changes to the nav menu editor to make it more compatible with other plugins.

v1.1.1

  • Fix: Forgot to add new files during commit. Correcting this issue.

v1.1.0

  • Feature: Added ability to insert user avatar in menu items with size option to match your needs.
  • Improvement: Added accessibility enhancements to menu editor. Includes keyboard support, proper focus, tabbing & titles.
  • Improvement: Added proper labeling to the user code dropdown.
  • Tweak: Restyled user code insert elements to better resemble default WP admin.

v1.0.0

  • Initial Release