Title: Login Require Press
Author: Marat Nepomnyashy
Published: <strong>2015年2月6日</strong>
Last modified: 2019年11月27日

---

プラグインを検索

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

![](https://s.w.org/plugins/geopattern-icon/loginrequirepress.svg)

# Login Require Press

 作者: [Marat Nepomnyashy](https://profiles.wordpress.org/maratbn/)

[ダウンロード](https://downloads.wordpress.org/plugin/loginrequirepress.1.4.0.zip)

 * [詳細](https://ja.wordpress.org/plugins/loginrequirepress/#description)
 * [レビュー](https://ja.wordpress.org/plugins/loginrequirepress/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/loginrequirepress/#installation)
 * [開発](https://ja.wordpress.org/plugins/loginrequirepress/#developers)

 [サポート](https://wordpress.org/support/plugin/loginrequirepress/)

## 説明

Overview:

At the time of this writing, the latest version of WordPress, version 5.3, has 3
post visibility options, which are ‘public’, ‘password protected’, and ‘private’.

The ‘password protected’ option allows the site administrator to individually lock
certain posts, even from the logged in users, with an additional password / passcode.
However, there is currently no built-in way to just deny access only to the unauthenticated
users.

Login Require Press is a WordPress plugin that allows site administrators to specifically
designate arbitrary posts with any public post type as viewable only after user 
login. Post authors can also enable or disable login protection for their own posts.

It is an easy way to require login to view specific pages / posts.

Unauthenticated site visitors attempting to view any page that includes any such
specifically designated post will then be automatically redirected to the site’s
default login page, and then back to the original page after they login, thereby
limiting access only to logged-in users with subscriber roles and above.

Plugin will still allow unauthenticated downloading of site’s feeds, but will filter
out all login-requiring posts from the feed listings.

Plugin will protect the titles, contents, and excerpts of login-requiring posts 
in search result page listings when the user is not logged in. The titles / contents/
excerpts will be replaced by text “[Post title / content / excerpts protected by
Login Require Press. Login to see the title / content / excerpt.]”

Technical summary:

Plugin works by hooking-in special logic into the action ‘send_headers’ to redirect
unauthenticated client browsers to the site’s login page from any non-feed and non-
search-results page upon detecting any login-requiring post, and by hooking-in another
special logic into the filter ‘posts_results’ to filter out all login-requiring 
posts from all feed page listings, and to protect the titles, contents, and excerpts
of login-requiring posts in search result page listings.

Login-requiring posts are marked with a custom field ‘login_require_press’ set to‘
yes’.

Official project URLs:

https://github.com/maratbn/LoginRequirePress
 https://wordpress.org/plugins/loginrequirepress
http://www.maratbn.com/projects/login-require-press

## スクリーンショット

 * [[
 * Login Require Press configuration screen with the table used to specify which
   posts are to be login-protected.
 * [[
 * Login Require Press configuration screen with the lists of private, non-private
   login-protected, and passcode-protected posts.
 * [[
 * Login Require Press edit post meta box to enable or disable login protection.

## インストール

 1. Unzip contents of `loginrequirepress.zip` into the directory `/wp-content/plugins/
    loginrequirepress/`.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## FAQ

  What do I do if I get this error “Plugin could not be activated because it triggered
a fatal error.” when trying to activate?

Upgrade to PHP >= 5.4 See
 https://wordpress.org/support/topic/crashes-on-activate

Make sure to check your PHP version with
 https://wordpress.org/plugins/display-
php-version/

  Where can I ask a question about Login Require Press?

Ask your questions at: https://wordpress.org/support/plugin/loginrequirepress

  Where can I post an issue / bug / feature request?

Post issues / bugs / feature requests at: https://github.com/maratbn/LoginRequirePress/
issues

  Plugin is missing feature X that I really want, what do I do?

Post a bug / feature request, or implement the feature at your leisure, and submit
a pull request.

## 評価

![](https://secure.gravatar.com/avatar/80518ca1fc91df6140a01a352a3ca7976d447b6b549012056fe1ff6e4c17c311?
s=60&d=retro&r=g)

### 󠀁[Yay! Does what it says](https://wordpress.org/support/topic/yay-does-what-it-says/)󠁿

 [Quindaro Press](https://profiles.wordpress.org/quindaro-press/) 2016年9月3日 1
reply

Just wanted to keep my site accessible to everyone with a login … and nobody else!
It works! Thanks.

![](https://secure.gravatar.com/avatar/a6215ad3ccf74e54f32c8aa49a8852d0c8f620d1c7796cb1e7b9100b4bfe7425?
s=60&d=retro&r=g)

### 󠀁[Exactly what I needed. Thank you.](https://wordpress.org/support/topic/exactly-what-i-needed-thank-you-2/)󠁿

 [soundfeelings](https://profiles.wordpress.org/soundfeelings/) 2016年9月3日

LoginRequirePress allows me to easily restrict users from viewing certain pages 
unless they are logged in. Wordpress’ other options of “public, password, or private”
do not give me what I need. This is just perfect. One thing you can mention in the
next version of the instructions is to keep the page settings at “public” to make
it work. Seems illogical, but that is exactly right. With this plugin, even though
the page setting is at “public” the public will not be able to view it unless they
are logged in, which is exactly what I needed. GREAT!

 [ 5件のレビューをすべて表示 ](https://wordpress.org/support/plugin/loginrequirepress/reviews/)

## 貢献者と開発者

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

貢献者

 *   [ Marat Nepomnyashy ](https://profiles.wordpress.org/maratbn/)

[“Login Require Press” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/loginrequirepress)

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

[コードを閲覧](https://plugins.trac.wordpress.org/browser/loginrequirepress/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/loginrequirepress/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/loginrequirepress/)を 
[RSS](https://plugins.trac.wordpress.org/log/loginrequirepress/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.4.0

 * Tested up to WordPress 5.3
 * Fixed bug that prevented authors without administrative privileges from enabling/
   disabling login protection on their own posts.
 * Added logic to indicate that the previously-implemented Login Require Press post
   meta box is not compatible with the new WordPress block editor.

#### 1.3.0

 * Tested up to WordPress 4.9.8
 * Added notice that changing settings in the meta box will not persist until the
   post is updated.
 * Improved post filtering logic.
 * Now also masking post excerpts of login-protected posts from search results.

#### 1.2.0

 * Tested up to WordPress 4.6
 * Changed the plugin name from ‘LoginRequirePress’ to ‘Login Require Press’.
 * Indicating posts without names by token [no name #] where # is the post ID number.
 * Shortened the plugin description appearing on the admin dashboard plugins list
   to just one sentence.
 * Added support for WordPress instances nested inside subdirectories.

#### 1.1.0

 * Tested up to WordPress 4.5.2
 * Improved the listing-out of posts in the post categorizations sections on the
   plugin’s Settings page.
 * Added ‘Refresh’ buttons to the Settings page.
 * Added LoginRequirePress meta box to the post edit screen.

#### 1.0.0

 * Version incremented to 1.0.0 to signify public release.
 * Tested up to WordPress 4.5
 * Login Required status indicators now in red.
 * Added new ‘Default Visibility’ column, that indicates posts’ present visibility
   according to the default WordPress logic without this plugin.
 * Explicitly listing-out the Private, Login-Protected, and Passcode/Password-Protected
   posts.
 * Added plugin activation check for PHP version >= 5.4
 * Revised screenshot 1 to display the latest UI, and added screenshot 2.

#### 0.1.2

 * Minor improvement to plugin WordPress description meta field.
 * Fixed issue https://github.com/maratbn/LoginRequirePress/issues/2: Added file‘
   REQUIREMENTS’.
 * Fixed issue https://github.com/maratbn/LoginRequirePress/issues/3: Protecting
   the titles and contents of login-requiring posts in search result page listings
   when the user is not logged in.

#### 0.1.1

 * Various documentation improvement.

#### 0.1.0

 * Initial release.

## メタ

 *  バージョン **1.4.0**
 *  最終更新日 **6年前**
 *  有効インストール数 **100+**
 *  WordPress バージョン ** 3.8.1またはそれ以降 **
 *  検証済み最新バージョン: **5.3.21**
 *  言語
 * [English (US)](https://wordpress.org/plugins/loginrequirepress/)
 * タグ
 * [control access](https://ja.wordpress.org/plugins/tags/control-access/)[Password Protect](https://ja.wordpress.org/plugins/tags/password-protect/)
   [security](https://ja.wordpress.org/plugins/tags/security/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/loginrequirepress/advanced/)

## 評価

 5つ星中4.5つ星

 *  [  3 5-星レビュー     ](https://wordpress.org/support/plugin/loginrequirepress/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/loginrequirepress/reviews/?filter=4)
 *  [  1 3-星レビュー     ](https://wordpress.org/support/plugin/loginrequirepress/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/loginrequirepress/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/loginrequirepress/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/loginrequirepress/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/loginrequirepress/reviews/)

## 貢献者

 *   [ Marat Nepomnyashy ](https://profiles.wordpress.org/maratbn/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/loginrequirepress/)