Title: Require Login
Author: richard4339
Published: <strong>2012 年 1 月 9 日</strong>
Last modified: 2015 年 3 月 28 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Require Login

 作者：[richard4339](https://profiles.wordpress.org/richard4339/)

[下载](https://downloads.wordpress.org/plugin/wp-require-login.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-require-login/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-require-login/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-require-login/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-require-login/#developers)

 [支持](https://wordpress.org/support/plugin/wp-require-login/)

## 描述

A simple plugin for WordPress that redirects users to the login page whenever they
try to visit any page/post/etc on the blog, with an option menu to turn this functionality
on or off. When enabled, the entire blog essentially becomes a private blog.

### To Do

 * Nothing currently. If you have any requests, please submit them on [GitHub](https://github.com/richard4339/wp-require-login/issues).

### Git/Subversion

In addition to the subversion access that WordPress is providing, this plugin is
available through git at [GitHub](https://github.com/richard4339/wp-require-login).

## 屏幕截图

[⌊The Require Login Settings page.⌉⌊The Require Login Settings page.⌉[

The Require Login Settings page.

## 安装

 1. Upload `wp-require-login.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Navigate to the ‘Require Login’ Settings menu and enable.

## 常见问题

### How do I enable this plugin?

Once the plugin itself is installed, navigate to the ‘Require Login’ Settings menu,
check the lone checkbox, and click ‘Update Options’.

### I’m running a build of WordPress that is older than 3.3. Can I use this plugin?

I personally wrote this for a WordPress installation in early 2008. When I revived
it a few days ago, I did have to make some changes. In all honesty, it should work
with 3.2 onwards, or on even earlier versions with the Settings menu portions removed
from the code. I’m only listing 3.3.0 since this is the earliest version I can guarantee
it works with.

### I found a bug!

Please report the bug on our [issue tracker](https://github.com/richard4339/wp-require-login/issues)
at [GitHub](https://github.com/richard4339/wp-require-login/issues).

## 评价

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

### 󠀁[Still works](https://wordpress.org/support/topic/still-works-155/)󠁿

 [Tachi](https://profiles.wordpress.org/aytacbalci/) 2018 年 11 月 28 日

I’m using this plugin (version 1.0.1) for almost 4 years without any problems. Now
with WP 4.9.x still flawless.

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/wp-require-login/reviews/)

## 贡献者及开发者

「Require Login」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ richard4339 ](https://profiles.wordpress.org/richard4339/)
 *   [ cmwelsh ](https://profiles.wordpress.org/cmwelsh/)

[帮助将「Require Login」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-require-login)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-require-login/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-require-login/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-require-login/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-require-login/)。

## 更新日志

#### 1.0.3

 * Added cmwelsh as a contributor

#### 1.0.2

 * Update to README only for version verification.

#### 1.0.1

 * Minor update from [cmwelsh](https://github.com/cmwelsh): Replaced deprecated 
   user level requirement with manage_options requirement.

#### 1.0

 * Added plugin installation and uninstall functions to aid option table cleanup.

#### 0.5.1

 * First published version.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**11 年前**
 *  活跃安装数量 **500+**
 *  WordPress 版本 ** 3.3.0 或更高版本 **
 *  已测试的最高版本为 **4.1.42**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-require-login/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[login](https://cn.wordpress.org/plugins/tags/login/)
   [private](https://cn.wordpress.org/plugins/tags/private/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-require-login/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/wp-require-login/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-require-login/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-require-login/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-require-login/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-require-login/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/wp-require-login/reviews/)

## 贡献者

 *   [ richard4339 ](https://profiles.wordpress.org/richard4339/)
 *   [ cmwelsh ](https://profiles.wordpress.org/cmwelsh/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-require-login/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.digitalxero.com/)