=== Simple Member Protection === Contributors: UsmanR Tags: membership, content protection, shortcode, restrict content, user roles Requires at least: 5.0 Tested up to: 6.8 Requires PHP: 7.2 Stable tag: 1.2.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Protect content based on login or membership level. Use shortcodes or UI toggles to restrict post/page visibility. == Description == **Simple Member Protection** allows site admins to restrict access to certain content based on user login status or assigned membership levels. Protect parts of your post/page content with a simple shortcode or assign membership levels through the admin interface. Features include: - Protect content with shortcodes for logged-in users only. - Manage members and define membership levels. - Assign membership level requirements to posts and pages. - Import/export member data. - Lightweight and easy to configure. == Installation == 1. Upload the plugin folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Navigate to the **Simple Member Protection** admin menu to configure your settings. 4. Use the provided shortcodes or meta box options to protect content. == Usage == Wrap content with `[protected_content]...[/protected_content]` to restrict it to logged-in users. To restrict content by membership level: 1. Edit a post or page. 2. Use the "Membership Protection" meta box to select the required level. == Shortcodes == `[protected_content]Your protected content here[/protected_content]` - Restricts the content to **logged-in users**. `[protected_content level="gold"]Your gold members-only content here[/protected_content]` - Restricts the content to users with a specific membership level (e.g., "gold"). If a user is not logged in or does not meet the membership level requirement, a login prompt is displayed. == Frequently Asked Questions == = Can I restrict content by user role or membership level? = Yes, you can assign and manage custom membership levels and apply them to posts or pages. = Is there a front-end login or registration form? = The plugin currently does not provide a front-end login/registration form. = Can I export or import members? = Yes. The plugin includes tools for importing and exporting member data. == Screenshots == 1. Membership level assignment in the post editor. 2. Member list management page. 3. Content protection using shortcode. == Changelog == = 1.0 = * Initial release. * Content restriction via shortcode and membership meta box. * Member and membership level management. * Import/export support. == Upgrade Notice == = 1.0 = Initial release of the plugin. == Credits == Developed by WP Plugin Pilot Plugin URI: https://wppluginpilot.com/simple-member-protection/ == License == This plugin is licensed under the GPLv2 or later.