=== RoleVault ===
Contributors: mrshahbaznns
Donate link: https://github.com/mrshahbazdev
Tags: role manager, user roles, capabilities, access control, woocommerce
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.2.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Advanced WordPress role manager, capability editor and user access control plugin with WooCommerce support.

== Description ==

**RoleVault** is a powerful WordPress role manager and user access control plugin that gives you complete control over user roles, capabilities, content restrictions, admin menus, sidebars, login/logout redirects and temporary role assignments.

Whether you are running a blog, membership site, e-commerce store, LMS or a multi-author website, RoleVault helps you manage who can see what and do what on your WordPress site.

**Key Features:**

* **Custom Role Editor** - Create, edit and delete custom WordPress user roles with a searchable, tabbed capability matrix.
* **Capability Manager** - Manage hundreds of WordPress and WooCommerce capabilities from one clean interface.
* **Content Restriction** - Restrict posts, pages and custom post types by user role or specific capability.
* **Admin Menu Visibility** - Hide admin menu items per role for a cleaner, safer dashboard.
* **Sidebar / Widget Control** - Remove entire sidebars or widget areas for specific user roles.
* **Login & Logout Redirects** - Set custom redirects for each role after login or logout.
* **Temporary Roles** - Assign time-based temporary roles that expire automatically via cron.
* **Role Preview** - Preview any role from the admin bar to test permissions in real time.
* **WooCommerce / E-Commerce Ready** - Full support for WooCommerce product, order, coupon and report capabilities.
* **Shortcode Support** - Use `[rolevault_restrict role="editor" capability="manage_options" message="Members only."]` to protect any content.
* **Modern UI** - Clean, responsive dashboard with cards, toggles and tabbed navigation.

RoleVault is a flexible WordPress role manager for developers, agencies and site owners who need role-based access control without writing custom code.

== Installation ==

1. Upload the `rolevault` folder to `/wp-content/plugins/`.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **Users -> RoleVault** to start managing roles and access.

== Frequently Asked Questions ==

= Can I create unlimited custom roles? =
Yes. You can create as many custom roles as you need and assign any combination of capabilities.

= Does this plugin work with WooCommerce? =
Yes. RoleVault supports all WooCommerce capabilities including products, orders, coupons, reports and custom product terms.

= Can I restrict a single page or post? =
Yes. Use the **RoleVault Access Control** meta box on any post, page or custom post type.

= What happens when a temporary role expires? =
A built-in cron job automatically removes expired temporary roles and cleans user meta.

= Is it safe to delete a custom role? =
Yes, but users with that role will lose those capabilities. Default WordPress roles cannot be deleted.

== Screenshots ==

1. Modern dashboard showing total roles, users, temporary roles and active preview role.
2. Roles list with user counts, capabilities and edit/delete actions.
3. Capability matrix with WordPress, WooCommerce and custom capability tabs.
4. User management page for assigning and removing temporary roles.
5. Admin menu and sidebar visibility controls per role.
6. Login and logout redirect settings per role.
7. Post editor meta box for content restriction by role or capability.

== Changelog ==

= 1.2.1 =
* Renamed plugin to RoleVault for a distinctive, brand-free identity.
* Removed inline scripts and enqueued all admin JS correctly.
* Escaped shortcode output for improved security.
* Removed plugin-directory banner/icon assets from the plugin zip (to be uploaded via SVN).

= 1.1.0 =
* SEO-optimized readme and plugin description.
* Added professional banner and icon assets.
* Improved capability save persistence.
* Updated admin view for better WordPress coding standards compliance.

= 1.0.0 =
* Initial release.
