WP Manifestindependent plugin directory
manifest / unclassified / inventivo-display-conditions

inventivo Display Conditions

Bloecke, Widgets und Menueeintraege nach Bedingungen ein- und ausblenden. Kostenloses WordPress-Plugin von inventivo.

by inventivo · github.com/inventivo/inventivo-display-conditions · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/inventivo/inventivo-display-conditions/archive/refs/heads/master.zip

Show or hide blocks, classic widgets and menu items with one simple condition and no code.

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

  1. Upload the inventivo-display-conditions folder to /wp-content/plugins/.
  2. Activate inventivo Display Conditions through the Plugins screen in WordPress.
  3. Edit a block, classic widget or navigation menu item and choose a Display Condition.

Frequently Asked Questions

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.

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.

Upgrade Notice

1.0.2

Renames the plugin and its text domain. No functional changes.

1.0.1

Prevents unrelated widget changes from being discarded and preserves existing conditions during REST-based saves.

1.0.0

Initial release.