Control menu item visibility based on user login status. Show or hide menu items for logged-in and logged-out users.
Prerequisites
Before using the plugin:
- Secure My WP Site – Login plugin must be installed and activated
Core Features
- Control menu item visibility based on login status
- Simple visibility options for each menu item
- Seamless integration with WordPress menu system
- User-friendly interface
- No coding required
- Real-time menu updates
Quick Start
- Upload the plugin files to
/wp-content/plugins/secure-my-wp-site-conditional-menu
- Make sure Secure My WP Site – Login plugin is installed and activated
- Activate the plugin through WordPress admin
- Go to Appearance -> Menus to configure visibility settings
- Edit individual menu items to set their visibility options
Configuration Options
Visibility Settings
- Everyone: Menu item is visible to all visitors (default)
- Logged-in users only: Menu item only appears for logged-in users
- Logged-out users only: Menu item only appears for visitors who are not logged in
How It Works
- Navigate to Appearance -> Menus in WordPress dashboard
- Edit any menu item to see the Visibility options
- Select desired visibility option for each menu item
- Save the menu to apply changes immediately
Admin Features
Menu Management
- Edit visibility per menu item
- Real-time preview of changes
- Bulk edit multiple items
- Easy-to-use dropdown options


Security Features
- Secure visibility controls
- WordPress nonce verification
- User capability checks
- Integration with main security plugin
Integration Support
- Works with Secure My WP Site – Login plugin
- Compatible with all WordPress themes
- Works with custom menu locations
- Supports all menu item types
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
- Menu Items Not Hiding
- Clear WordPress cache
- Check visibility settings
- Verify menu changes were saved
- Settings Not Saving
- Check user permissions
- Verify WordPress menu nonce
- Ensure proper user role
Security Best Practices
- Review menu visibility settings regularly
- Test menu appearance in both logged-in and logged-out states
- Keep plugin updated
- Monitor for unauthorized changes
- Use secure menu items for sensitive content
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