Show or Hide WordPress Content by User Role: 8 Visibility Plugins

To show or hide WordPress content by user role, pick the plugin for the thing you want to hide. For menu items, use Nav Menu Roles or User Menus. For blocks and widgets, use Block Visibility or Widget Options. For Elementor elements, use Visibility Logic or Dynamic Visibility. To protect whole pages, use Members, and for WooCommerce products, Product Visibility by User Role.
One rule before the list: hiding is not protecting. A hidden menu item or block keeps its page reachable for anyone with the link. If the content itself must stay private, use the plugins in the “Whole posts and pages” section, or a membership plugin.
Every number below (version, active installs, last update) was read on WordPress.org or the vendor’s site in November 2026.
| Plugin | What it hides | Free on WordPress.org | Active installs |
|---|---|---|---|
| Nav Menu Roles | Menu items | Yes | 70,000+ |
| User Menus | Menu items | Yes | 80,000+ |
| Block Visibility | Any block | Yes, all features | 40,000+ |
| Widget Options | Widgets and blocks | Yes, roles in the paid version | 100,000+ |
| Visibility Logic for Elementor | Elementor widgets, sections, containers | Yes, with a Pro version | 20,000+ |
| Dynamic Visibility for Elementor | Elementor widgets and sections | Yes, with a paid upgrade | 50,000+ |
| Members | Whole posts and pages | Yes | 300,000+ |
| Product Visibility by User Role | WooCommerce products | Yes, with a Pro version | 6,000+ |
Menu items
This is the most common request: a “My account” link only for members, “Log in” only for guests, an “Admin” menu only for editors.
Nav Menu Roles (version 3.0.0) adds a visibility panel to every menu item: everyone, logged-in users or logged-out users, and for logged-in users a list of roles to tick. A Show or Hide switch lets you invert the rule. Since version 3.0 the same panel is in the Site Editor (Appearance > Editor > Navigation), so it works with block themes too. Links added by the Page List block cannot be restricted.
User Menus does the same in the classic menu editor and adds two extras: login, register and logout links with a redirect, and placeholders such as {username} or the avatar inside a menu label. It is a good fit for a community header (“Hi, {username}”). Its page does not mention block themes.
If you used If Menu from our 2021 list: its last update on WordPress.org was in December 2024 and it was tested up to WordPress 6.7, so we would start a new site with one of the two above.
Blocks and widgets
Block Visibility (version 3.8.1) adds visibility controls to blocks in the block editor: hide always, schedule by date, screen size, logged in or out, user roles or single users, and more conditions such as query strings, referrers and WooCommerce data. Since version 3.1.0 the former Pro features are part of the free plugin.
Widget Options works on classic widgets and on blocks. The free version covers login state, devices and the pages, posts and categories a widget appears on. Rules by specific user role are in its paid version.
Elementor elements
Visibility Logic for Elementor is made by StaxWP, which belongs to the same company as SeventhQueen, so read this paragraph with that in mind. It adds a visibility section to every widget, section and container: user role (logged in, logged out or chosen roles), user meta, date and time, device, browser and ACF fields, plus an option to hide a parent when all its children are hidden. The Pro version adds conditions such as WooCommerce, language, URL parameters, geolocation and fallback content, from $29 per year for one site (pricing, docs).
Dynamic Visibility for Elementor from Dynamic.ooo covers similar ground: roles and capabilities, login state, user meta, IP, dates, days of the week, hours, custom fields, devices and WooCommerce cart conditions. One thing it gives for free that Visibility Logic keeps for Pro is fallback content, for example a “Members only” note or a login form in place of the hidden element.
If you already pay for Elementor Pro, check your plan first. Elementor Pro added Display Conditions for elements in version 3.19, so you may not need a third plugin for simple role rules.
Whole posts and pages
Members is a role editor (create roles, change their capabilities) with a Content Permissions feature: on each post or page you choose which roles may see its content. That protects the content itself, not just the link to it.
If access depends on payment rather than role, use a membership plugin. Our Paid Memberships Pro guide shows how to restrict pages, posts and categories by level, and the membership level docs list the shortcodes for parts of a page.
WooCommerce products
Product Visibility by User Role for WooCommerce from WP Wham sets included or excluded roles on each product. You choose whether a product is hidden from the shop and search, made non-purchasable, or hidden completely. The Pro version adds bulk rules by category or tag and a redirect instead of the 404 page.
In KLEO and our other themes
KLEO has visibility tools of its own. The WPBakery Restrict Content element shows a block only to logged-in users or only to guests (how to), and with Paid Memberships Pro active, Theme options > Memberships restricts BuddyPress areas per level. On Elementor pages, any of the Elementor plugins above works with KLEO, SeeKo and SweetDate.
To make a whole BuddyPress community members-only, you do not need a visibility plugin at all: see how to restrict BuddyPress and bbPress pages to logged-in members.
Frequently asked questions
How do I hide a menu item based on user role in WordPress?
Install Nav Menu Roles or User Menus. Both add a visibility option to each menu item: everyone, logged-in users, logged-out users, or chosen roles. Nav Menu Roles also works in the Navigation block of block themes since version 3.0.
Does hiding a menu item stop people from opening the page?
No. It only removes the link. Anyone with the URL can still open the page. To protect the page itself, use a membership or content permission plugin such as Members or Paid Memberships Pro.
How do I show an Elementor widget only to logged-in users?
Use a visibility add-on such as Visibility Logic for Elementor or Dynamic Visibility for Elementor. Both are free on WordPress.org and add login state and user role conditions to widgets and containers.
Can WordPress hide content by role without a plugin?
Not by role from the editor. WordPress core has no role setting on blocks or menu items, so you either add a plugin or write PHP that checks is_user_logged_in() or current_user_can().
Keep reading

BuddyBoss vs BuddyPress: Which One for Your WordPress Community?
BuddyBoss Platform is a fork of BuddyPress with more built in; BuddyPress is the free, modular original. How they differ and how to choose...
8 Best multilingual Plugins for WordPress
Are you confused as to which of the multilingual WordPress plugins to use for your website translation? If so , then you are in the right...
Elementor vs WPBakery: Page Builder Comparison
Elementor and WPBakery compared on price, editing, how they store pages and what happens when you switch, from a theme that ships with...