Version: 1.0
Author: WP Plugin Pilot
The Simple Member Protection plugin lets you protect WordPress content from unauthorized access. It enables administrators to define membership levels and restrict content visibility based on those levels or login status.
simple-member-protection folder to /wp-content/plugins/.After activation, the plugin adds a top-level admin menu called SMP with these subpages:
The plugin provides the following shortcode to protect content:
This content is for members only.
Login Now
Restrict by membership level:
This content is for members only.
Login Now
level attribute is not provided, the shortcode checks login status.When editing any post/page, you’ll see a meta box labeled Membership Protection:
From the All Members menu:
Use the admin menu to:
CSV import/export is available for member data:
CSV format:
email,membership_level
user1@example.com,gold
user2@example.com,silver
Users with the smp_member role are blocked from accessing the WordPress admin dashboard. They are redirected to the home page unless performing AJAX actions.
smp_enable_protection — can disable content protection globally.membership_level — stores the level for each user.smp_member — assigned to members on registration/import.class-smp-shortcodes.php.class-smp-admin.php and individual logic classes.
This content is for members only.
Login Now
is closed properly.smp_member.This plugin is licensed under the GNU General Public License v2 or later.