=== Permarix Content Access Manager ===
Contributors: coderexperts, sayfur-rahman
Tags: restricted content, content protection, membership, user registration, moderation
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Protect WordPress content with role-based access rules, moderated registration, and customizable visitor forms.

== Description ==

Permarix Content Access Manager gives WordPress site owners a practical way to control access to content without replacing WordPress's normal user and authentication system. Create access rules, choose which roles are allowed to view protected content, decide what visitors see when access is denied, and customize the forms shown inside the locked-content experience.

**Key features:**

* **Role-based content protection** - restrict posts and pages to logged-in users with the roles you choose.
* **Reusable access rules** - create rules for protected content and define the behavior for visitors who do not have access.
* **Flexible denied-access behavior** - show a custom message or redirect visitors to another URL.
* **Moderated registration** - optionally hold new registrations for administrator approval before users can access protected content.
* **Login, Register, and Forgot Password forms** - give visitors the appropriate account actions directly from the locked-content card.
* **Custom registration fields** - configure the account information collected during registration and customize field labels and messages.
* **Custom roles** - create and use additional roles when the standard WordPress roles are not enough for your access model.
* **Locked-content defaults** - configure core locked-content behavior from Permarix settings. Advanced visual styling is provided by Permarix Pro.
* **Locked-content shortcode** - explicitly place protected content areas where you need them. The Gutenberg Locked Content block and page-builder integrations are Pro features.
* **Login protection** - built-in throttling helps reduce repeated login and password-reset attempts.

Permarix is focused on content access: it works with WordPress users and roles and adds a configurable layer for deciding who can see protected content and what experience other visitors receive.

The optional **Permarix Pro** add-on provides the visual editor, Gutenberg Locked Content block, page-builder integrations, per-content layout controls, advanced role management, notification features, and additional integrations.

== Pro Features ==

Upgrade to **Permarix Pro** to unlock advanced management tools and visual customization:
* **Per-Post Content Rules** - Apply unique restriction rules to specific pages and posts.
* **Visual Layout Designer** - Customize the look and feel of your login and locked-content cards.
* **Gutenberg Block & Page Builder Integrations** - Easily insert locked content using native blocks.
* **Advanced Role Editor** - Create and manage custom user capabilities seamlessly.
* **Automated Notifications** - Get notified instantly of new user registrations pending moderation.

👉 [Get Permarix Pro Today](https://coderexperts.com/permarix/)

= How content protection works =

Create an access rule, select the roles that are allowed to view the protected content, and choose what should happen when someone does not meet the requirement. Depending on your configuration, Permarix can display a custom access-denied message or redirect the visitor.

You can use reusable rules for broader protection; advanced per-post controls are available in Permarix Pro.

= Visitor access forms =

When a visitor reaches protected content, Permarix can present Login, Register, and Forgot Password tabs in the locked-content card. You can control which forms are available and customize their labels and messages.

== Source Code ==

The plugin-owned source code is included in the distributed plugin package. No external build step is required to regenerate the plugin-owned assets.

The plugin does not require third-party JavaScript libraries for its admin content search controls; its plugin-owned JavaScript and CSS are shipped in the package.

== Installation ==

1. Upload the `permarix` folder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugin screen directly.
2. Activate the plugin through the "Plugins" screen in WordPress.
3. Go to **Permarix → Settings** in the WordPress admin to configure protection and access behavior. Visual design and editor integrations are available in Permarix Pro.

== Frequently Asked Questions ==

= Does Permarix work with any theme? =

Yes. The locked card is rendered by the plugin and inherits styles from your theme. Advanced visual styling is available in Permarix Pro.

= Can I protect content by user role? =

Yes. Each rule and each per-post override can require one or more roles.

= What happens to new registrations? =

If moderation is enabled, new users are held in a pending state until an administrator approves or rejects them. The admin gets notified through the Pro notification system.

= Is there a Pro version? =

Yes. Permarix Pro adds post-type rules, per-page layout overrides, a full layout designer, auto-notifications, and a role editor. It is distributed outside of WordPress.org from the plugin page.

== Screenshots ==

1. Add New Access Rule
2. General Settings
3. Visual Design Editor Settings
4. Role Manager Settings
5. Reset Settings
6. Single Page/Post/CPT Sidebar Settings
7. Layout 1
8. Layout 2
9. Layout 3
10. Layout 4

== Changelog ==

= 1.0 =
* Initial release of Permarix.
* Added role-based content protection, reusable access rules, per-post controls, moderated registration, custom roles, and configurable Login, Register, and Forgot Password forms.
* Added the locked-content shortcode and core access rendering. Gutenberg and page-builder integrations are provided by Permarix Pro.
* Hardened registration, reset operations, AJAX actions, capabilities, and nonce handling.
* Reworked admin asset loading and replaced the outdated Select2 dependency with native search controls.
* Included readable plugin-owned JavaScript source and strengthened source-code packaging documentation.
* Moved all administration pages under **Settings → Permarix** and standardized internal classes, hooks, assets, and storage keys under the current PMWP naming.
* Migrated internal PHP classes to the Permarix namespace and standardized the PMWP_ internal prefix.

== Upgrade Notice ==

= 1.0 =
Initial release of Permarix. Check out the [Permarix Pro version](https://coderexperts.com/permarix/) for visual layout designers, Gutenberg blocks, and advanced role management tools.
