Blocks by User Role for WordPress — is an essential tool for any site owner looking to tailor their content for different audiences. It provides a simple yet powerful interface directly within the Gutenberg block editor to set visibility rules for any block. You can choose to show or hide content based on whether a user is logged in or out, what role they have (e.g., Administrator, Editor, Subscriber), or even target specific individual users. This plugin empowers you to create a more relevant and personalized experience for your visitors. Whether you're building a membership site with exclusive content, showing custom welcome messages to logged-in users, or displaying administrative notes that only editors can see, this plugin handles it all seamlessly. It eliminates the need for complex custom code or multiple plugins, integrating content restriction directly into your natural workflow.
Why This Is Important
In today's digital landscape, a generic "one-size-fits-all" website is no longer effective. Users expect personalized experiences, and failing to provide them leads to higher bounce rates and lower conversions.
- The Pain of Irrelevance: Showing a "Sign Up Now" call-to-action to an already registered and logged-in member is a poor user experience. It shows you don't recognize them. According to a study by SmarterHQ, 72% of consumers say they only engage with personalized messaging.
- Boosting Conversion and Engagement: With this plugin, you can show a premium content offer exclusively to subscribers or a special discount only to logged-out visitors. Personalized calls-to-action have been shown to convert 202% better than generic ones. By tailoring content, you directly increase its relevance and impact.
- Simplified Workflow for Admins: Tired of managing complex membership plugins just to hide a single paragraph? This tool simplifies your life by allowing you to create member-only content, editor-only instructions, or promotional banners for guests right from the block editor, saving you time and reducing plugin bloat.
Features
- Seamless Gutenberg Integration: Manage visibility directly in the block settings sidebar.
- Control by User Role: Show or hide blocks for Administrators, Editors, Authors, Contributors, Subscribers, or any custom roles.
- Logged-in/Logged-out Visibility: Easily display different content to logged-in users versus public visitors.
- Target Specific Users: Restrict content to be visible only to one or more specific user accounts by their ID or username.
- Hide Content Completely: The block is removed from the frontend code, not just hidden with CSS, which is better for SEO and security.
- No Coding Required: A user-friendly interface that requires no knowledge of PHP or JavaScript.
- Supports All Block Types: Works with core Gutenberg blocks, custom blocks, and blocks from third-party plugins.
- Lightweight & Efficient: Built for performance, the plugin adds minimal overhead to your site.
- Multisite Compatible: Works flawlessly across networks in a WordPress Multisite installation.
- Customizable Messages: Set an optional message to display to users who do not have permission to view a block.
Benefits by User Type
| User Type | How This Plugin Helps You | Key Benefit |
|---|---|---|
| Bloggers | Show a "Subscribe for more" block only to logged-out visitors. Hide premium content previews from non-subscribers. | Increased subscriber conversion rate. |
| E-commerce Stores | Display a "Welcome back, [Name]!" block to returning customers. Show a "10% off your first order" banner to new visitors. | Enhanced customer loyalty and sales. |
| Membership Sites | Easily create members-only content sections (videos, downloads, articles) visible only to paying tiers. | Simplified content protection. |
| Corporate Websites | Show different service information to wholesale clients (logged-in) versus retail customers (logged-out). | Personalized B2B/B2C marketing. |
| Multi-author Blogs | Leave editor-only notes and instructions within posts that are invisible to the public and other author roles. | Improved internal communication. |
How to install the plugin?
- Download the plugin archive using the button above.
- Navigate to Plugins > Add New in your WordPress dashboard.
- Click "Upload Plugin" at the top and select the downloaded ZIP file.
- Install, activate the plugin, and follow the quick setup wizard instructions.
FAQ
Does this plugin work with popular page builders like Elementor or Beaver Builder?
This plugin is specifically designed to work with the native WordPress block editor (Gutenberg). It does not provide visibility controls for widgets or modules within third-party page builders. For those, you would need to use the visibility settings provided by the page builder itself.
If I hide a block, is it truly secure?
Yes. The plugin controls visibility on the server-side. This means that if a user does not have the required role, the content of the block is never sent to their browser. It is not simply hidden with CSS. This makes it a secure way to protect sensitive or premium content.
Can I use this to create a full membership site?
For simple content restriction, yes. You can easily create pages with blocks visible only to members. However, for a complete membership solution with payment gateways, subscription management, and drip content, you should pair this plugin with a dedicated membership plugin like MemberPress or Paid Memberships Pro.
Will this plugin slow down my website?
The plugin is built to be lightweight and efficient. The visibility checks are performed on the server with minimal code and have a negligible impact on your site's loading time. It is significantly faster than loading a large, multi-purpose membership plugin for simple visibility control.