=== Romesoft Post Visibility Manager ===
Contributors: romelir
Donate link: https://paypal.me/romelir
Tags: visibility, password protection, restrict devices, lock content
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Control visibility of individual posts and custom post types based on user roles.

== Description ==

Romesoft Post Visibility Manager is a straightforward access control plugin for WordPress. It allows administrators to manage exactly which user roles can view your content, and provides elegant password protection options.

= Features =
* **Global Visibility Defaults**: Control which roles can access a specific Content Type (Posts, Pages, or any Custom Post Type) by default.
* **Custom Visibility per Post**: Override global settings on individual posts or pages.
* **Global Password Protection**: Set a single site-wide password to protect specific content types.
* **Device-Based Restrictions**: Block or allow access based on the visitor's device (Desktop, Tablet, Mobile) using either a fast CSS-based Visual method or a secure AJAX-based Strict method.
* **Content Exclusion (Bypass)**: Select specific pages (like your "My Account" or "Checkout" pages) to always bypass protection rules.
* **Smart Filtering**: Restricted posts are automatically hidden from archive loops and search results.
* **Access Denied Screen**: Replaces the default 404 error with a professional "Access Denied" template.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/romesoft-post-visibility-manager` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Use the new **Post Visibility** menu in your WordPress dashboard to configure global role access and exclusions.
4. Use the "Post Visibility by Role" metabox on post editing screens for custom access or quick bypasses.

== Screenshots ==

1. **Global Settings**: Configure default visibility for a selected content type.
2. **Password Protection**: Protect types of content with a global password.
3. **Device Restrictions**: Configure which devices (Desktop, Tablet, Mobile) can view your content globally or per-post.

== Frequently Asked Questions ==

= Does this work with custom post types? =
Yes! Any public custom post type will automatically appear in the global settings allowing you to select and manage its visibility.

== Changelog ==

= 1.1.0 =
* New: Added Device Restrictions (Desktop, Tablet, Mobile).
* New: Added dual-method restriction for devices: Visual (fast CSS) and Strict (secure AJAX, cache-friendly).
* Updated: Plugin tags.
* Tested with WordPress 7.0.1

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Welcome to Romesoft Post Visibility Manager!
