Description
inventivo Display Conditions adds visibility controls to the block editor, classic widget forms and navigation menu items.
User role conditions always hide the element from logged-out visitors because they do not have a user role.
Choose one condition for each element:
- Login state: logged in or logged out.
- User role: any role registered in WordPress.
- Date range: a start date, an end date, or both.
- Time of day: a start time, an end time, or both.
Date and time conditions use the timezone configured in WordPress. Ranges include their start and end values. Time ranges can span midnight.
The free version supports exactly one condition per element. It does not combine multiple conditions, detect device width, or add conditions supplied by third-party plugins.
The plugin has no settings page, creates no database tables, collects no telemetry and makes no external network requests.
Installation
- Upload the
inventivo-display-conditionsfolder to/wp-content/plugins/. - Activate inventivo Display Conditions through the Plugins screen in WordPress.
- Edit a block, classic widget or navigation menu item and choose a Display Condition.
FAQ
-
Can I combine multiple conditions?
-
No. The free version stores exactly one condition per block, widget or menu item.
-
Can I show content only on mobile or desktop?
-
No. Device width cannot be determined reliably during server-side rendering.
-
Does this plugin add conditions from third-party plugins?
-
No. The free version has no condition that depends on another plugin.
-
What do logged-out visitors see when a user role condition is selected?
-
The element is hidden because logged-out visitors do not have a user role.
-
Which timezone is used?
-
Date and time conditions use the timezone selected in Settings > General in WordPress.
-
What happens when a time range crosses midnight?
-
A range such as 22:00 to 06:00 matches from 22:00 through midnight and until 06:00.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“inventivo Display Conditions” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “inventivo Display Conditions” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.2
- Renamed the plugin to inventivo Display Conditions and changed the text domain to inventivo-display-conditions.
1.0.1
- Preserved unrelated widget changes and existing conditions in REST-based widget saves.
- Added controls to the Site Editor and block widget editor.
- Hid descendants of hidden menu items.
- Improved role labels, condition forms and uninstall cleanup.
1.0.0
- Initial release.
- Added login state, user role, date range and time of day conditions.
- Added support for blocks, classic widgets and navigation menu items.
