PPP Extension

Àpèjúwe

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.

Àwọn àwòrán ìbòjú

  • Admin settings page for setting expiration time in minutes.

Ìgbéwọlẹ̀

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

FAQ

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.

Àwọn àgbéyẹ̀wò

Ka gbogbo àgbéyẹ̀wò 1

Àwọn Olùkópa & Olùgbéejáde

“PPP Extension” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

Túmọ̀ “PPP Extension” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

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.