block-visibility
block-visibility copied to clipboard
Add new Controls option for Shortcode and validate value similar to the ACF integration
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
inControls
- 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)