Block Visibility Versions Save

Conditional visibility controls for all WordPress blocks.

v3.0.0

1 year ago

Read the Block Visibility 3.0.0 announcement post.

Added

  • Added the Browser & Device control.
  • Added the Cookie control.
  • Added the Location control.
  • Added the Metadata control.
  • Added the Referral Source control.
  • Added the URL Path control.
  • Added the Visibility Preset control.
  • Added Day of Week and Time of Day functionality to the Date & Time control.
  • Added control set utility support.
  • Added local visibility control support.
  • Added the ControlSetControls- and ControlSetControlsIntegrations- slots for adding visibility control editor UI elements.
  • Added the PluginSettings slot for adding additional plugin settings.
  • Added the VisibilityControls, VisibilityControlsGeneral, and VisibilityControlsIntegrations slots for adding additional visibility control settings.
  • Added the blockVisibility.globallyRestrictedBlockTypes and blockVisibility.widgetAreaRestrictedBlockTypes filters to restrict visibility controls on specific block types.

Changed

  • Plugin scripts are now enqueued with enqueue_block_editor_assets, and previous workarounds have been removed.
  • Deprecated the ControlSetControlsBottom- slot, use ControlSetControlsIntegrations- instead.
  • Deprecated the VisibilityControlsIntegrationsBottom slot, use VisibilityControlsIntegrations instead.

Removed

  • Removed Pro upgrade link on the plugins admin page.
  • Removed Pro upsells from settings pages.
  • Removed block-level contextual indicator filters.
  • Removed the blockVisibility.addControlSetModals and blockVisibility.addControlSetOptions filters.
  • Removed the ControlSetControlsTop- and ControlSetControlsMiddle- slots.
  • Removed the PluginSettingsEditorTop and PluginSettingsEditorTop slots.
  • Removed the PluginSettingsTop, PluginSettingsMiddle, and PluginSettingsBottom slots.
  • Removed the VisibilityControlsTop, VisibilityControlsMiddle, and VisibilityControlsBottom slots.
  • Removed the VisibilityControlsIntegrationsTop and VisibilityControlsIntegrationsBottom slots.
  • Removed the RuleSetOptionsTop, RuleSetOptionsMiddle, RuleSetOptionsBottom, and RuleSetMoreSettingsTools slots.
  • [Date & Time] Removed the block_visibility_frontend_test_date_time_schedule filter.
  • [Date & Time] Removed the VisibilityControlsDateTimeTop and VisibilityControlsDateTimeBottom slots.
  • [Date & Time] Removed the DateTimeScheduleToolbar- and DateTimeScheduleControlsTop-, and DateTimeScheduleControlsBottom- slots.
  • [Date & Time] Removed the ScheduleOptionsTools, ScheduleOptionsMiddle, and ScheduleOptionsBottom slots.
  • [Screen Size] Removed the ScreenSizeControls slot.
  • [User Role] Removed the VisibilityByRoleControls slot.

v2.6.0

1 year ago

Added

  • [ACF] Added support for "greater than", "greater than or equal", "less than", and "less than or equal" operators for numeric and date/time fields.
  • [ACF] Added field type help message.

Changed

  • [ACF] Improved support for numeric and date/time fields.
  • [ACF] Improved support for "choice" fields.
  • Improved help message support in rule set fields.

Removed

  • [ACF] Removed frontend tests that were deprecated in v1.9.0.

Fixed

  • [ACF] Fix information popover position.
  • Fixed translations not working on the plugin settings page. Thanks @webaxones for discovering this issue and also for translating the plugin into French!
  • Fixed incorrect JSDoc tags throughout the plugin.

v2.5.4

1 year ago

Changed

  • Improved Kadence Blocks support by only displaying the Visibility panel on the Advanced tab. (Requires Kadence Block 3.0+)
  • Explicitly set the InspectorControls group to "settings" for the new tabbed interface in WordPress 6.2.

Fixed

  • Fixed bug in contextual indicators that would incorrectly add visibility classes to blocks.

v2.5.3

1 year ago

Fixed

  • Fixed bug in contextual indicators that would override custom block classes added by third-party plugins. (#61)

v2.5.1

1 year ago

Changed

  • Consolidated controls filters into a single filter.
  • Renamed and consolidated contextual indicator filters.

Fixed

  • Fixed conditional opacity CSS for text-only blocks. (#54)
  • Fixed data fetching method to only return simplified variables in plugin settings.
  • Fixed incorrect translation strings.
  • Fixed styling on control reset button to match Core tools panels.

v2.5.0

1 year ago

Upgrade Notice

Block Visibility now requires WordPress 6.0+ with version 2.5.0 and users of the Pro add-on will need to upgrade to Pro 1.6.0 to take advantage of these latest enhancements. There have also been updates to the way visibility defaults work. Check out the release article for more information.

Added

  • [Screen Size] Added filter for specifying blocks that are incompatible with the control.
  • Added loading indicator in Editor visibility panel while settings and variables are being fetched.
  • Added support for uncategorized block types in the Block Manager.
  • Added back the ability to enable or disable help notices and popovers in the Editor.
  • Added subtle upsell messaging in the plugin settings dashboard.
  • Added Pro compatibility warning notice for versions 1.5.3 and lower.

Changed

  • Block Visibility now requires WordPress 6.0 or greater.
  • [User Role] Fetch users directly rather than rely on the Block Visibility variables endpoint.
  • Redesigned the Editor UI to match the WordPress 6.1 design system.
  • Redesigned the Block Manager.
  • Consolidated all external plugin links into a single directory.
  • Optimized all custom SVG icons, including those used in contextual indicators. Indicator stylesheet is now 50% smaller.

Removed

  • Removed visibility panel and toolbar controls on Custom HTML blocks in the block-based Widget Area due to incompatibility. Visibility controls are still available for the Custom HTML block in the post/page Editor as well as the Site Editor.
  • Removed unnecessary custom icons.
  • Removed support url from variables endpoint.

Fixed

  • [Advanced Custom Fields] Fixed bug where numeric ACF fields were not being evaluated correctly. (#50)
  • [Screen Size] Fixed bug where using the Screen Size control and the meow-gallery/gallery block. Added better error handling to avoid a similar issue in other third-party blocks.
  • Fixed bug where resetting settings on a specific tab would reset all plugin settings.

v2.4.6

1 year ago

Fixed

  • Fixed bug where contextual indicator styles caused issues with Cover blocks when a custom indicator color was chosen in WordPress 6.1.
  • Fixed bug where contextual indicator styles caused issues with hover states in the Site Editor when a custom indicator color was chosen in WordPress 6.1.

v2.4.5

1 year ago

Fixed

  • Fixed bug where text blocks became nearly impossible to edit when visibility controls were applied in WordPress 6.1.
  • Fixed bug where block contextual opacity was applied incorrectly to Cover blocks with overlay enabled.

v2.4.4

1 year ago

Changed

  • Simplify REST API requests on the plugin settings page to increase performance and attempt to fix edge case fetch errors.

v2.4.3

1 year ago

Fixed

  • Fixed incorrect filter attribute in WP Fusion visibility test. (#24)