Getting Started
Installation
- Upload the plugin to
/wp-content/plugins/ - Activate the plugin through the WordPress admin
- Navigate to WB Plugins → Private Community
First Time Setup
When you first access Private Community, you’ll see five tabs:
- 🏠 Welcome – Overview and quick start
- 🔓 Partial Protection – Protect specific pages/sections
- 🔒 Full Protection – Lock entire site
- ⚙️ Protection Rules – Configure protection behavior
- 🆘 Support – Help and documentation
Understanding Protection Types
Partial Protection
Best for: Sites that need some public content
- Protect specific URLs or pages
- Lock BuddyPress/BuddyBoss components
- Allow public access to most content
Full Protection
Best for: Private communities, membership sites
- Lock entire website
- Define whitelist for public pages
- Force login for all content
Protection Priority
⚠️ Important: Full Protection always overrides Partial Protection settings.
Step 1: Choose What to Protect
Protecting Specific URLs
- Go to Partial Protection tab
- In the URLs to Protect textarea, enter one URL per line:
/members /private-content /premium-resources
Using Wildcards
You can use asterisks (*) for pattern matching:
/blog/* # All blog posts
/shop/products/* # All product pages
*/private/* # Any URL containing /private/
*.pdf # All PDF files
Protecting BuddyPress Components
If you have BuddyPress/BuddyBoss installed:
- Check the components you want to protect:
- ☑️ Members Directory
- ☑️ Groups
- ☑️ Activity Streams
- Click Save Changes
Step 2: Save Your Settings
Click the Save Changes button at the bottom of the page.
Note: Full Protection overrides these settings
Step 1: Enable Complete Protection
- Go to Full Protection tab
- Check ☑️ Enable Complete Site Protection
- Your entire site is now private!
Step 2: Configure Whitelist
Add URLs that should remain public. By default, these are whitelisted:
# Homepage (remove this line to protect homepage too)
/
# WordPress Login Page (required)
wp-login.php
wp-admin
admin-ajax.php
# Add your public pages below:
/about
/contact
/terms
Whitelist Examples
# Exact URLs
/public-page
/contact-form
# Wildcards
/api/* # All API endpoints
/public/* # All URLs starting with /public/
*.xml # All XML files (sitemaps, feeds)
*.txt # robots.txt, etc.
# WordPress Core
/wp-json/* # REST API
/feed # RSS feed
Step 3: Save Changes
Click Save Changes to activate full protection.
Protection Methods
Shows a built-in login/register form:
- Clean, integrated design
- Works without additional setup
- Includes login and registration options
2. Custom Form
Display your own content:
- Add custom HTML
- Use shortcodes
- Embed third-party forms
Example:
<div class="custom-locked-content">
<h2>Members Onlyh2>
<p>This content requires membership.p>
[your_custom_login_shortcode]
div>
3. Page Redirect
Redirect visitors to a specific page:
- Select Page Redirect
- Choose your login/membership page
- Visitors automatically redirect
Locked Content Message
Customize the message shown to locked-out visitors:
- Use the visual editor to format your message
- Add images, links, or videos
- Include a call-to-action
Example message:
Welcome to Our Exclusive Community!
This content is available to members only. Join today to access:
- Premium resources
- Member discussions
- Exclusive content
[Login] or [Register] to continue.
Common Use Cases
1. Membership Site
Goal: Paid members-only content
Setup:
- Enable Full Protection
- Whitelist:
- Homepage
- Pricing page
- Registration page
- Payment pages
- Set redirect to membership sales page
2. Private Company Portal
Goal: Employee-only access
Setup:
- Enable Full Protection
- Whitelist only:
- Login page
- Password reset
- Custom message: “Company employees only”
3. Protected Blog Section
Goal: Some posts public, some private
Setup:
- Use Partial Protection
- Protect URLs:
/premium/* /members-only/* - Keep main blog public
4. BuddyPress Community
Goal: Public homepage, private community
Setup:
- Use Partial Protection
- Check all BuddyPress components
- Add community pages to protected URLs
- Keep marketing pages public
5. Course Website
Goal: Free previews, paid courses
Setup:
- Use Partial Protection
- Protect:
/courses/*/lessons/* /courses/*/quizzes/* - Keep course overviews public
Troubleshooting
Protected Pages Still Accessible
Check these:
- Clear your browser cache
- Clear any caching plugins
- Log out completely (use incognito mode to test)
- Verify URLs are entered correctly
- Check if Full Protection is overriding Partial Protection
Login Form Not Appearing
Solutions:
- Check Protection Method setting
- Ensure theme compatibility
- Look for JavaScript errors in console
- Disable conflicting plugins temporarily
Redirect Loop Issues
Fix:
- Ensure login page is whitelisted
- Check redirect page isn’t protected
- Clear cookies and cache
- Verify WordPress Address settings
Some Users Can’t Access Protected Content
Verify:
- Users are properly logged in
- User roles and capabilities
- No conflicting membership plugins
- Session/cookie issues
Changes Not Taking Effect
Steps:
- Click Save Changes button
- Clear all caches:
- Browser cache
- Plugin cache
- CDN cache
- Test in incognito/private mode
FAQ
Q: Can I protect custom post types?
A: Yes! Add their URLs to the protected URLs list. Use wildcards for patterns.
Q: Will this affect SEO?
A: Protected pages won’t be indexed by search engines. Consider keeping key pages public for SEO.
Q: Can I have different messages for different pages?
A: Currently, one message applies to all protected content. Use the Custom Form method with conditional shortcodes for variety.
Q: Does it work with page builders?
A: Yes, compatible with popular builders like Elementor, Divi, and Gutenberg.
Q: Can logged-in users see everything?
A: Yes, any logged-in user bypasses protection. For role-based access, consider additional membership plugins.
Q: How do wildcards work exactly?
A:
*matches any characters/blog/*matches/blog/post-1,/blog/category/news*/private/*matches/section/private/content- Pattern matching is case-insensitive
Q: Can I protect media files?
A: Direct file protection requires server configuration. The plugin protects attachment pages, not direct file URLs.
Q: Is there a way to temporarily disable protection?
A: Deactivate the plugin or uncheck all protection settings.
Q: Can I export/import settings?
A: Settings are stored in the WordPress database. Use standard WordPress export/import tools.
Q: Does it support multisite?
A: Yes, activate per-site or network-wide. Each site maintains independent settings.
Best Practices
Security
- Always whitelist login pages
- Use strong passwords
- Keep plugin updated
- Regular backups
Performance
- Use caching wisely
- Minimize protected URLs
- Optimize whitelist rules
- Monitor server resources
User Experience
- Clear, friendly locked messages
- Obvious login/register options
- Mobile-responsive forms
- Quick loading times
Testing
- Test as logged-out user
- Check mobile experience
- Verify all protected URLs
- Test in different browsers
Quick Reference
URL Pattern Examples
# Exact match
/exact-page
# All subpages
/parent/*
# Specific file types
*.pdf
*.doc
# Complex patterns
/blog/*/comments
/shop/product-*/reviews
Whitelist Essentials
# Always include
wp-login.php
wp-admin
admin-ajax.php
# Often needed
/wp-json/* # REST API
xmlrpc.php # XML-RPC
/feed # RSS feeds
Protection Hierarchy
- Logged-in users → Full access
- Full Protection whitelist → Public access
- Full Protection → Protected
- Partial Protection URLs → Protected
- Everything else → Public
Getting Help
Support Resources
- 📧 Email: support@wbcomdesigns.com
- 📚 Documentation: Check Support tab
- 🐛 Bug Reports: WordPress.org support forum
- 💡 Feature Requests: Contact support team
Before Contacting Support
- Check this guide
- Review FAQ section
- Test in default theme
- Disable other plugins
- Check error logs
Information to Provide
- WordPress version
- Plugin version
- Active theme
- Other active plugins
- Steps to reproduce issue
- Error messages (if any)
Glossary
Whitelist: URLs that remain publicly accessible
Wildcard: Pattern matching using * character
Protection Method: How locked content is handled
BuddyPress Components: Social features like members, groups, activity
URL Pattern: Rules for matching multiple URLs
Incognito/Private Mode: Browser mode for testing as logged-out user




