PPP Extension

描述

Extends the Public Post Preview plugin by allowing users to customize the expiration time dynamically through the WordPress admin panel.

Features

  • Set the expiration time for Public Post Preview links.
  • Customize the expiration time in minutes (from 1 minute to 30 days).
  • Secure input validation to prevent invalid values.
  • Fully integrated into the WordPress Settings panel.
  • Safe and lightweight implementation.

How to Use

  1. Navigate to Settings > PPP Extension in your WordPress admin panel.
  2. Enter the expiration time in minutes (minimum: 1, maximum: 43200 minutes / 30 days).
  3. Click Save Changes.
  4. Public Post Preview links will now expire based on your selected time.

Security

– User input is sanitized and validated to prevent unauthorized values.
– The input is limited between 1 minute and 30 days to avoid extreme values.
– Escaped output prevents XSS attacks.

License

This plugin is released under the GPLv2 or later license.

屏幕截图

安装

  1. Download the plugin.
  2. Upload the extracted ppp-extension folder to /wp-content/plugins/.
  3. Activate the plugin in WordPress Admin > Plugins.

常见问题

What is the allowed expiration time range?

You can set the expiration time between 1 minute (minimum) and 43200 minutes (30 days maximum).

Does this work without Public Post Preview installed?

No, this plugin extends the Public Post Preview plugin, so it must be installed and activated first.

评价

阅读所有1条评价

贡献者及开发者

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

贡献者

帮助将「PPP Extension」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.4

  • Tested with WordPress 6.9.
  • Enhanced code structure and improved escaping for better security.
  • Added proper internationalization support throughout the plugin.
  • Added capability checks for enhanced security.
  • Improved function documentation and code organization.

1.0.3

  • Tested with WordPress 6.8.
  • Added a Settings link next to Deactivate on the Plugins page.

1.0.2

  • Security enhancements for user input.
  • Set expiration time in minutes instead of seconds.
  • Capped expiration limit to 30 days (43200 minutes).

1.0.1

  • Security enhancements for user input.
  • Set expiration time in minutes instead of seconds.
  • Capped expiration limit to 3 days (4320 minutes).

1.0.0

  • Initial implementation of dynamic expiration settings.