Easily restrict access to pages and posts based on user login status. Set global defaults or configure per-page restrictions.
Prerequisites
Before using the plugin:
- Secure My WP Site – Login plugin must be installed and activated
Core Features
- Global content restriction settings
- Per-page/post restriction options
- Customizable restriction messages
- Custom login page URL support
- Easy-to-use meta box controls
- Developer-friendly helper functions
- Default behavior settings
- Content type-specific messages
Quick Start
- Upload the plugin files to
/wp-content/plugins/secure-my-wp-site-content
- Make sure Secure My WP Site – Login plugin is installed and activated
- Activate the plugin through WordPress admin
- Use the Content Restrict settings page to configure global defaults
- Edit individual posts or pages to set specific restrictions
Configuration Options
Global Settings
- Default Behavior: Choose between Everyone or Logged-in users only
- Custom Message: Set message for restricted content with content_type and login_url placeholders
- Login URL: Specify custom HTTPS login page URL (optional)

Per-Page Settings
- Everyone: Content visible to all visitors
- Logged-in users only: Content restricted to logged-in users
- Overrides global settings per page/post
Content Management
- Individual page restrictions
- Post-specific settings
- Override global defaults
- Easy meta box controls

Integration Support
- Works with Secure My WP Site – Login plugin
- Compatible with all post types
- Works with custom themes
- Supports template integration
Troubleshooting Common Issues
- Plugin Not Activating
- Verify Secure My WP Site – Login is installed and active
- Check PHP version requirement
- Ensure WordPress version is compatible
- Restrictions Not Working
- Check global settings configuration
- Verify individual page settings
- Clear cache after changes
- Login URL Issues
- Ensure HTTPS URL is used
- Verify login page exists
- Check URL formatting
Security Best Practices
- Always use HTTPS for login URL
- Regularly review restricted content
- Test restrictions while logged out
- Keep plugin updated
- Monitor access attempts
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Modern web browser with JavaScript enabled
- Secure My WP Site – Login plugin installed and activated
License
GPLv2 or later