=== Post/Page Edit Restriction Days ===
Contributors: josefnamin
Tags: post, page, edit restriction, post edit restriction, page edit restriction
Requires at least: 6.1
Tested up to: 6.8
Stable tag: 1.2
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Requires PHP: 7.4

Restrict editing of posts or pages after a set number of days to improve content control.

== Description ==

**Post/Page Edit Restriction Days** helps website owners and administrators prevent accidental or unauthorized edits to posts and pages after a specific period. This ensures content remains stable once published, protecting your site's integrity.

With this plugin, you can set a restriction period in days or hours, after which only administrators or authorized user roles can edit posts or pages.

Features:
* Restrict post and page edits after a configurable number of days.
* Specify which user roles can edit content after the restriction period.
* Simple, intuitive interface within WordPress.
* Prevent unwanted or accidental changes from editors or contributors.
* Lightweight and fast with minimal impact on performance.

== Installation ==

1. **Via WordPress Admin Panel**
   1. Go to **Plugins > Add New**.
   2. Search for "**Post/Page Edit Restriction Days**".
   3. Click **Install Now**, then **Activate**.

2. **Manual Installation**
   1. Download the plugin ZIP file.
   2. Upload the `postpage-edit-restriction-days` folder to `/wp-content/plugins/`.
   3. Activate the plugin via the **Plugins** menu in WordPress.

== Frequently Asked Questions ==

= How do I set a restriction period? =
After activating the plugin, go to any **Post** or **Page** in your WordPress dashboard. You’ll see the **"Day Restriction"** option, where you can specify how long a post remains editable. Once the period expires, only admins or authorized roles can edit the content.

= Which user roles can bypass the restriction? =
By default, administrators can always edit posts and pages. You can configure additional roles in the plugin settings.

= Who can I contact for support? =
For assistance, email us at: [itadminjn@jobbid.org].

== Changelog ==

= 1.2 =
* Updated default restriction period from 3 minutes to 3 days for improved usability.
* Minor code optimizations for performance.

= 1.1 =
* Updated default restriction period from 3 minutes to 3 days for improved usability.
* Minor code optimizations for performance.

= 1.0 =
* Initial release with basic post/page edit restriction functionality.

== Screenshots ==
1. "Day Restriction" button on post edit screen.
2. Restriction settings modal.
3. Notification for restricted edits.

== Upgrade Notice ==

= 1.1 =
* Default restriction period updated. Existing settings remain unchanged.

== Translations ==
We welcome volunteers to translate this plugin. Visit the [WordPress Translate Project](https://translate.wordpress.org/projects/wp-plugins/postpage-edit-restriction-days/) to contribute.