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

Administrator Access to PMPro Protected Content

描述

By default Paid Memberships Pro will not let an administrator get access to a protected post or page without making the administrator a member of one of the membership levels that are required for that post/page in the “Require Membership” checkboxes in the post/page editor.

This is contrary to what a traditional interpretation of the “Administrator” role represents for WordPress (or any user based security system). People expect the administrator/root account(s) on the system to have full access to administer and view the content on the site.

This behavior also represents one of the frequent problems experienced when trying to use a WordPress front-end post or page editor; The expected content for the post/page being edited either doesn’t show up, or is being redirected away from.

This plugin will remove the PMPro access restrictions to content for any user assigned to the WordPress ‘administrator’ role.

As of version 1.2, the same functionality has been extended to the PMPro [membership] short code.
This plugin should be used with caution!

Credit

This plugin uses Unlock Hd Icon by Ahkâm – Copyright (c) Ahkâm
This plugin uses the logo by Paid Memberships Pro – Copyright (c) Stranger Studios, LLC

v1.3

  • REFACTOR: Updated to signify support for latest WordPress releases

v1.2

  • ENHANCEMENT: Add check override when using [membership] short code
  • BUG FIX: Didn’t guarantee false return when user isn’t logged in or not an admin

v1.1

  • BUG FIX: Didn’t prevent redirect(s) when accessing the Membership Account page

v1.0

  • Initial release of plugin

安裝

  1. Upload the administrator-access-to-pmpro-protected-content directory to the /wp-content/plugins/ directory of your site.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Verify that your administrator user has not been given a PMPro Membership Level
  4. Attempt to view a post or page that has been protected by one or more PMPro Membership Level(s)
  5. Do a happy dance..?

評價

2021年3月4日
Thank you very much for developing this plugin. This plugin is great, but If you use Paid Memberships Pro - BuddyPress Add On to restrict access to a page by membership level, the administrator will not be able to see the page. Do you plan to make this plugin compatible with Paid Memberships Pro - BuddyPress Add On?
閱讀全部2個評價

貢獻者及開發者

“Administrator Access to PMPro Protected Content” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Administrator Access to PMPro Protected Content 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Administrator Access to PMPro Protected Content 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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