Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/aplauche/wp-gated-site/archive/refs/heads/main.zipCreate a gated content site where users must register and login to access content beyond the home page.
Description
WP Gated Content is a simple yet powerful plugin that transforms your WordPress site into a gated content platform. Perfect for course content, exclusive resources, or any content you want to keep behind a registration wall.
Key Features:
- Complete Access Control: All pages except home, login, register, and password recovery are gated
- Member Role: Adds a dedicated "member" user role with read-only access to gated content
- Clean Authentication Pages: Provides styled login, register, and password recovery pages
- Admin Protection: Members cannot access the WordPress dashboard or admin bar
- Automatic Redirections: Smart redirects for authenticated/unauthenticated users
- Fully Customizable: CSS variables make styling customization simple
- AJAX-Powered: Smooth user experience with AJAX form submissions
- Security-First: Built following WordPress security best practices
Perfect For:
- Online course platforms
- Membership sites
- Exclusive content libraries
- Private resource centers
- Client portals
- Premium content sites
How It Works:
- Install and activate the plugin
- The plugin automatically creates login, register, and password recovery pages
- Unauthenticated users can only access the home page and authentication pages
- Users who register get the "member" role and can access all content
- Members are redirected away from admin areas to keep the site clean
Installation
- Upload the plugin files to the
/wp-content/plugins/wp-gated-contentdirectory, or install the plugin through the WordPress plugins screen directly - Activate the plugin through the 'Plugins' screen in WordPress
- The plugin works automatically - no configuration needed!
- Customize the styling by overriding CSS variables in your theme
Frequently Asked Questions
Can I customize the styling of the authentication pages?
Yes! The plugin uses CSS variables for all colors and spacing. You can override these variables in your theme's CSS file. See the plugin's CSS file for examples.
What happens to existing user roles?
The plugin only adds a new "member" role and doesn't affect existing roles like Administrator, Editor, etc. Existing users keep their current capabilities.
Can I change which pages are accessible to unauthenticated users?
The plugin is designed to only allow access to the home page and authentication pages for unauthenticated users. For custom requirements, you would need to modify the plugin code.
Do members get any admin privileges?
No, members only get the "read" capability and cannot access the WordPress admin area or see the admin bar.
Is the plugin translation-ready?
Yes, the plugin is fully translation-ready with the text domain 'wp-gated-content'.
Changelog
1.0.0
- Initial release
- Complete gated content functionality
- Member role creation
- Authentication pages with AJAX
- CSS variable-based styling
- Security and access control features
Upgrade Notice
1.0.0
Initial release of WP Gated Content plugin.