=== RoleArchitect - Role & Permission Manager ===
Contributors: byzgl
Tags: roles, capabilities, permissions, user management, access control
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.0
Stable tag: 1.2.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Professional WordPress role and permission management. Design, build and control user access with architectural precision.

== Description ==

RoleArchitect is a professional WordPress plugin that gives you complete architectural control over user roles and permissions. Like an architect designs buildings with precision, RoleArchitect lets you design and build your site's access control system with expert-level tools and capabilities.

= Core Features =

* **Role Management**: Edit WordPress default roles (Administrator, Editor, Author, Contributor, Subscriber)
* **Capability Management**: Manage all WordPress and WooCommerce capabilities for default roles
* **User Assignment**: Assign roles to users (single role per user)
* **User Management**: Search and manage users by username, display name, or email
* **Content Restriction (Posts)**: Use [ROAR_restrict] shortcode to restrict post content by role
* **Post Restriction**: Bulk and individual post restriction via UI
* **Default Role Setting**: Set default role for new user registrations
* **Security Logging**: Track role changes and permission modifications
* **Translation Ready**: Turkish language support included
* **Multisite Compatible**: Works on multisite networks

= PRO Features (Separate Plugin) =

* **Create Custom Roles**: Unlimited custom role creation
* **Clone & Delete Roles**: Manage custom roles with ease
* **Admin Menu Restriction**: Control which admin menu items each role can see
* **Content Permissions**: Granular edit/publish/delete permissions per content type
* **Pages & Custom Post Types**: Restrict pages and any custom post type
* **Multiple Roles Per User**: Assign multiple roles to a single user
* **Export/Import**: Backup and migrate role configurations
* **Capability-Based Restrictions**: Advanced content restriction options
* **Priority Support**: Direct email support from developers

= Content Restriction =

* Shortcode-based content restriction: `[ROAR_restrict role="editor"]Content here[/ROAR_restrict]`
* Multiple role support: `[ROAR_restrict roles="administrator,editor"]Content here[/ROAR_restrict]`
* Custom access denied messages
* Meta box for individual post restrictions
* Bulk restriction operations for posts
* **PRO**: Pages restriction
* **PRO**: Custom post types restriction
* **PRO**: Capability-based restrictions

= Security Features =

* AJAX request validation with security nonce checks
* Permission control ensuring only authorized users can manage roles
* Prevention of removing your own administrator privileges
* Page access control
* Security event logging
* Session validation

= Developer Friendly =

* GPL v2 or later licensed
* Clean, well-documented code
* WordPress coding standards compliant
* Extensible with filters and actions

== Installation ==

1. Upload the plugin to the WordPress plugin directory (`/wp-content/plugins/`)
2. Activate the plugin through the Plugins menu in WordPress admin panel
3. Click on "RoleArchitect" in the left menu to start managing roles

== Frequently Asked Questions ==

= Is this plugin completely free? =

Yes! All features included in this free version are fully functional with no artificial limitations. We also offer a PRO version with additional features like custom role creation, admin menu restriction, and advanced content permissions.

= Can I create custom roles? =

Yes! The free version supports creating custom roles and editing role permissions. Role cloning and import/export are PRO features.

= Can I assign multiple roles to a user? =

Multiple role assignment is a PRO feature. The free version supports single role assignment per user.

= Can I delete system roles? =

Role deletion is a PRO feature. The free version focuses on creating and editing roles.

= Does it work with WooCommerce? =

Yes, you can manage WooCommerce capabilities for any role in both free and PRO versions.

= Can I restrict content? =

Yes! The free version supports content restriction for posts, pages, and custom post types using shortcodes, meta boxes, or bulk operations. Category-level and custom field restrictions are PRO features.

= Can I control admin menu visibility? =

Yes! The free version supports restricting top-level admin menus. Submenu-level restrictions and admin bar controls are PRO features.

= Can I export and import role configurations? =

Export/Import is a PRO feature for easy backup and migration of role settings.

== Screenshots ==

1. Role Management - Create, edit, delete, and clone roles
2. User Role Assignment - Assign multiple roles to users
3. Menu Restriction - Control admin menu visibility
4. Content Restriction - Bulk and individual content restrictions
5. Settings - Export/Import and visibility settings

== Changelog ==

= 1.2.1 =
* **WordPress.org Guideline 5 Full Compliance**: All visible features are fully functional
* **Removed**: Add New Role button (now PRO feature)
* **Removed**: Admin Menu Restriction functionality (now PRO feature showcase)
* **Removed**: Content Permissions with disabled capabilities (now PRO feature showcase)
* **Limited**: Content Restriction to Posts only (Pages and CPTs are PRO features)
* **Added**: PRO feature showcase pages with upgrade information
* **Added**: Enhanced PRO upgrade banners on all pages
* **Code**: Cleaned up all disabled/locked UI elements
* **Code**: Removed is_pro_only checks from menu system
* **Code**: Simplified JavaScript by removing PRO checking logic
* **Compliance**: Zero disabled features - everything visible is functional
* **Note**: PRO features are advertised but not present in free codebase

= 1.2.0 =
* **WordPress.org Compliance Update**: All implemented features are now fully functional
* **Feature**: Unlimited role creation (removed 3-role limit)
* **Feature**: Role deletion now available for all custom roles
* **Feature**: Role cloning now available
* **Feature**: Multiple role assignment per user now available
* **Feature**: Plugin management now available
* **Feature**: Content visibility settings now available
* **Feature**: Export/Import now available
* **Feature**: All post types (pages, custom post types) now accessible for restrictions
* **Security**: Enhanced POST data sanitization
* **Security**: Improved nonce verification
* **Security**: Proper escaping of all output
* **Security**: Security event logging
* **Compliance**: Removed all artificial feature restrictions per WordPress.org Guideline 5
* **UI**: Removed PRO badges and upgrade prompts
* **UI**: Cleaned up interface for better user experience

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.2.0 =
Major update! All features are now fully functional. WordPress.org compliance update with security enhancements and all artificial restrictions removed.

== License ==

This plugin is licensed under GPL v2 or later.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
