Title: p5 : Plenty of Perishable Passwords for Protected Posts
Author: Cyril Batillat
Published: <strong>2013 年 6 月 23 日</strong>
Last modified: 2014 年 5 月 20 日

---

搜索插件

![](https://ps.w.org/p5/assets/banner-772x250.png?rev=730937)

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

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

# p5 : Plenty of Perishable Passwords for Protected Posts

 作者：[Cyril Batillat](https://profiles.wordpress.org/cyrilbatillat/)

[下载](https://downloads.wordpress.org/plugin/p5.1.4.zip)

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

 [支持](https://wordpress.org/support/plugin/p5/)

## 描述

By default, WordPress can protect each post with one and only password. This plugin
gives you the possibility to assign multiple passwords on each post, with an expiration
date.

## 屏幕截图

[⌊A protected post with multiple passwords⌉⌊A protected post with multiple passwords⌉[

A protected post with multiple passwords

## 安装

 1. Upload plugin folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Specify WordPress timezone on General Settings screen (/wp-admin/options-general.
    php). If possible, choose a real timezone (eg ‘Europe/London’) which may be more
    accurate than offsets (‘+2:00’) in some cases.
 4. Be sure that your template files use the WordPress function to protect your content:
 5.  See [WordPress codex](https://codex.wordpress.org/Using_Password_Protection) for
    more info.

## 常见问题

  What happens when a password expire ?

The password is deleted from the database, so it is no longer attached to your post.

  Expired passwords aren’t deleted. Why ?

The plugin use WordPress cron feature to periodically delete expired passwords. 
Please make sure this functionnality is working on your WordPress installation. 
[WP-Cron Control](https://wordpress.org/plugins/wp-cron-control/) plugin is a good
way to see what’s happening with the cron.

  My post is no longer protected. Why ?

In WordPress, a post is protected as long as it has a password attached. When all
the post passwords have expired, the post is no longer protected. It’s as simple
as that.
 To keep a post protected, assign it a password without an expiration date.

  Are my already defined passwords conserved after installation ?

Yes.

  Are my password-protected posts still protected when I deactivate/uninstall p5
plugin ?

Yes. After deactivation or uninstallation, your posts are still protected with the
first password that was attached to each of them.

  My password is supposed to be expired, but I still can see my protected content

Be sure that the timezone is well defined in /wp-admin/options-general.php

  Does this plugin provide some hooks ?

Yes. Actually these actions are defined :

 1. p5_insert_password, called after insertion of a new password
 2. p5_update_password, called after password update
 3. p5_save_password, called indifferently after p5_insert_password or p5_update_password.
 4. p5_delete_password, after a password has been deleted

## 评价

此插件暂无评价。

## 贡献者及开发者

「p5 : Plenty of Perishable Passwords for Protected Posts」是开源软件。 以下人员
对此插件做出了贡献。

贡献者

 *   [ Cyril Batillat ](https://profiles.wordpress.org/cyrilbatillat/)

[帮助将「p5 : Plenty of Perishable Passwords for Protected Posts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/p5)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.4

 * Fixed bug on cookie expiration date, due to difference of timezone between WordPress
   and the client
 * Minor improvements for WP UI
 * Updated jQuery Timepicker Addon

#### 1.3

Get ready for languages packs (WP 3.7.1 feature)

#### 1.2

Workaround to url_to_postid getting bugged. (see https://core.trac.wordpress.org/
ticket/19744)
 The post ID was not retrieved on custom post types.

#### 1.1

Use CSS scope on jQuery UI datetime picker to avoid collisions

#### 1.0

First release

## 额外信息

 *  版本 **1.4**
 *  最后更新：**12 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/p5/)
 * 标签
 * [expiration](https://cn.wordpress.org/plugins/tags/expiration/)[password](https://cn.wordpress.org/plugins/tags/password/)
 *  [高级视图](https://cn.wordpress.org/plugins/p5/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

[查看全部评论](https://wordpress.org/support/plugin/p5/reviews/)

## 贡献者

 *   [ Cyril Batillat ](https://profiles.wordpress.org/cyrilbatillat/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/p5/)