Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
seemly opened this issue Jun 22, 2023 · 0 comments
Labels
Enhancement New enhancement or feature request.

Comments

@seemly
Copy link

seemly commented Jun 22, 2023

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)
@ndiego ndiego added the Enhancement New enhancement or feature request. label Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New enhancement or feature request.
Projects
None yet
Development

No branches or pull requests

2 participants