このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Access Category Password

説明

このプラグインは、パスワードと対象カテゴリーを設定して、特定のカテゴリー内の投稿へのアクセス制限を可能にします。対象の投稿本文と抜粋は、パスワード入力フォームに置き換えられ、ユーザーが入力するとアクセス可能になります。WordPress の生成するフィードも変更し、任意の文章で説明を置き換えます。

Here’s the list of the settings (see screenshots for further infos):

  • Choose between session or cookie authentication
  • Set the password
  • Check the categories that has to be protected
  • Check the users granted to access the categories without password
  • Tell if the excerpt should be displayed or not in resources listing
  • Display a custom excerpt before password field
  • Set the info message that display before the password form
  • Set the placeholder in password field
  • Set the error message when typing the wrong password
  • Set the valdation button text
  • Set the text replacing the feed item description of protected posts
  • You can style the form using the available classes

Availabe languages : English (1.5), French (1.5), Simplified Chinese (thanks to Changmeng Hu, 1.4), German (1.4).

This plugin uses php Sessions (more secure) or a Cookie (less secure) to keep in mind the authenticated users. The password is crypted before it is stored. The regular feed content is filtered to avoid content display of restricted categories posts.

スクリーンショット

  • Access Category Password options page (beginning with version 1.4)
  • Protected content in Twenty Fifteen Theme
  • When wrong password...

インストール

  1. Type “access category password” in the extension adding search form and install it or, after dowloaded the package, extract the access-category-password directory and upload it to the /wp-content/plugins/ directory of your WordPress installation
  2. WordPress の「プラグイン」メニューからプラグインを有効化してください
  3. Go to Settings » Access Category Password to set up the plugin

FAQ

Could I protect more than one category

Yes. You just have to check the right checkboxes in the plugin options screen.

Could I style the password form?

Yes. Beginning with version 1.4 of Access Category Password. You can add in your regular theme stylesheet (style.css) or the dedicated file in the plugin folder (acpwd.css) the selectors and their properties. Here are the available classes:
* acpwd-container class: the container of all elements that replace the content.
* acpwd-added-excerpt class: the <p> tag containing the customized excerpt. (added in version 1.5)
* acpwd-info-message class: the <p> tag containing the info message.
* acpwd-form class: the <form> tag.
* acpwd-pass class: the <input type="password"> tag.
* acpwd-submit class: the <input type="submit"> tag.
* acpwd-error-message class: the <p> tag containing the error message.

Could I display the excerpt or content of a post in the listing but not the content of the single post view?

Yes. You just have to check the “Only single posts” checkbox in admin options panel. The content of the single post view will be protected. This will allow to display regular excerpt of protected posts on other pages like category, homepage, search, and so on… (if your template shows only the excerpt on these pages)

Could I set more than one Password?

No, sorry, I wanted to keep the plugin simple. But this would be a functionnality that could be added later,…

Are the attachments in the posts protected ?

No, sorry, I didn’t find yet a solution to solve this. So if someone gets the link to the attachment of a protected post, he will be able to download it.

評価

2020年7月19日
This plugin does what it says. Extremely helpful for managing your WordPress content access. It allows you to control access based on user roles. If you are running a membership site, you'll find it especially handy. Plus, it's totally free. I give it a 5 star rating!
2019年12月6日 1 reply
protection type COOKIE is insecure. If User set browser COOKIE, he can access protected posts. --- protection type がCOOKIEの場合は安全面に問題があります。 ある名称のCOOKIEをブラウザに埋め込めば保護された投稿にアクセス可能で、それはとても簡単にできます。
2019年6月16日
This nice little plugin is exactly the thing I sought for. I didn't want to mess with account logins for each single; I just wanted to restrict access to some materials in my website, and grant access by one single password, which I can change from time to time. My sincere gratitude to the maker of this plugin. Excellent job and highly recommended!
14件のレビューをすべて表示

貢献者と開発者

Access Category Password はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Access Category Password” は3ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Access Category Password” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.5.1

  • Working also now on Posts without text

1.5

  • Added new way to protect categories (you have the choice between session or cookie)
  • Define the cookie expiration time
  • Form styling
  • Possibility to add custom excerpt before password form
  • uninstalling the plugin remove all metadatas
  • Fixed replacing the content of resources that aren’t in main query

1.4.1

  • Fixed text domain issue.

1.4

  • possibility to grant the selected roles to get access without providing the password.
  • Make it possible to show the excerpt (in category listing for instance) even if the article is protected.
  • Added zn_CN (thanks to Changmeng Hu) and de_DE translation.
  • Added classes to password form to ease the styling.
  • Fixed impossible to add working html tags to info message.

1.3

  • Fixed the modified info message (in admin option panel) not beeing taken in account on frontpage.
  • Added the possibility to change the validation button string.
  • Better submitting text filtering in admin panel (using WP esc_attr() function)
  • Fixed obsolete description strings.

1.2

  • Fixed the characters already sent error on activation (it was simply an encoding issue).
  • Keep now the regular feed (doesn’t replace it) and sanitize it.
  • Better session handling (session destroy on logout).

1.1

  • Fixed wrong custom feed template inclusion path. Sorry for that!

1.0

  • First release. Thanks for your feedback!