=== Simple PageAccess ===
Contributors: guruplugins
Tags: restrict pages, user roles, page access, private pages, role-based access
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.0
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Control who can view pages with a simple checkbox — restrict access to logged-in users and roles, right from the WordPress page editor.

== Description ==

**Simple PageAccess** is probably the smallest, most powerful access control plugin you'll ever install.

In under **100 lines of code**, it gives you role-based control over who can view each page — without cluttering your dashboard or slowing down your site.

- Adds a "Only Allow Logged In Users" checkbox to each page
- Dynamically show checkboxes for each user role via clean in-editor UI
- Restrict access with **zero configuration**, straight from the page editor
- Display a centered heading message: *"You are not allowed to view this page!"* for unauthorized users
- No separate settings page, no database bloat — just smart, surgical code

Perfect for membership sites, private client pages, internal portals, or any time you want fast, targeted access control.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/simple-pageaccess` directory, or install via the WordPress Plugin Directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Edit any page. In the right-hand settings panel, check "Only Allow Logged In Users" to enable restrictions.
4. Choose the user roles that should be allowed to view the page.

== Frequently Asked Questions ==

= Can I restrict posts or custom post types? =
Not yet — this version only supports pages. Post type support may come in a future release.

= What happens if a user isn’t allowed? =
They’ll see a clean, centered message that says: *"You are not allowed to view this page!"*

= Can I change the message or redirect users? =
Not yet, but custom behavior can be added with a few lines of code.

== Screenshots ==

1. The access checkbox and role selector inside the page editor.
2. The message shown to users who aren’t allowed to view a page.

== Changelog ==

= 1.0 =
* Initial release — small code, big control.

== Upgrade Notice ==

= 1.0 =
First release — no upgrades yet.

== Credits ==

Built by Christopher Harden — plugins.guru-is.com
