block-visibility icon indicating copy to clipboard operation
block-visibility copied to clipboard

Add new Controls option for Shortcode and validate value similar to the ACF integration

Open seemly opened this issue 1 year ago • 0 comments

It would be amazing if you add support for the use of shortcodes, and had the UI similar to the ACF integration.

What problem does this address?

This would allow developers to create and use any custom shortcode to manage block visibility, and would greatly extend functionality, making the support of third-party plugins like Restrict Content Pro easy without requiring native integration.

What is your proposed solution?

The Editor flow would be:

  • Select the option Shortcode in Controls
  • Provide a text input field to paste the shortcode
  • Show/Hide the block if (as found in ACF integration)
  • Select Condition (as found in ACF integration)

seemly avatar Jun 22 '23 11:06 seemly