這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Members Only Menu Plugin

外掛說明

This plugin is now deprecated, please use WordPress Access Control for access to new features, such as restrict to members or non-members, restrict to certain roles and specify a redirect URL. This name didn’t suite the version 2.0.

https://wordpress.org/extend/plugins/wordpress-access-control/

This plugin allows you to mark a page as “Members Only”. Once this is done, the user must login to view the page. However, you can still add the page to the menu, and it will then ONLY show up if the user is authenticated. That way you can have more items for logged in members on your website.

This plugin is designed for people using WordPress as a CMS. It’s extremely easy to use. You install the plugin, and activate it. Whenever you create or edit a page there is a checkbox on the sidebar that allows you to mark that page as members only.

This plugin now fully supports wp_nav_menu and wp_page_menu for older sites, so it should be compatible with older versions of WordPress, as well as wp_list_pages for certain themes.

It automatically sets the walker class to the one we custom made so theme developers don’t need to do anything

螢幕擷圖

  • The meta box added by this plugin

安裝方式

Installation is very simple:

  1. Upload members-only-menu-plugin/ to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. You can now go to a page and mark it as members only.

常見問題集

I get a PHP error when I try to activate your plugin

This was caused by PHP4, which is now supported in version 1.4

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Members Only Menu Plugin〉的開發相關工作。

參與者

將〈Members Only Menu Plugin〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.6.4

  • Fixed a problem with certain themes that use wp_list_pages as my plugin didn’t affect that function. It does now, as we hook into get_pages. Also updated some of the code to better reflect WordPress coding standards

1.6.3

  • Fixed a problem in pre WordPress 3 instances where a PHP error is generated due to lack of the Walker_Nav_Menu class

1.6.2

  • Fixed (X)HTML validation errors caused by an empty ul which could occur if all items in a submenu were members only but the parent element was not.

1.6

  • Fixed a bug where third level menu items with members only attributes would break the HTML/menu

1.5

  • Fixed an error where submenus would still be generated if the parent was marked as members only. This has been fixed.

1.4

  • Added support for PHP4

1.3

  • Added support for wp_page_menu

1.2

  • Added a filter which catches a fallback to wp_page_menu and removes our walker class from the arguments list

1.1

  • Added a filter which removed the need to change the wp_nav_menu commands

1.0

  • Initial Version