-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Calling render_callback() without register_block_type? #4723
Comments
Hi @phpbits, Could you share more detail on what you're trying to do? |
@danielbachhuber I'm trying to hide several specific blocks and there's no filter/callback option. I did it by using Would be really helpful and better if you have filters and actions available there. Thanks! |
@danielbachhuber The
Thanks! |
Relevant exchange at #4591 (comment) |
Seconding this — additional filters on block render would be super valuable. For instance right now I'm trying to change the structure of image tags to modify the |
@chrisvanpatten, I think it's best to follow #2751, as its resolution should provide an overarching solution for this. |
Checking https://github.com/WordPress/gutenberg/blob/a41173b0be06c5c8c8e397bfb7b30604099e3182/lib/blocks.php and there seems to be no block render_callback option without register_block_type. Will there be any filters available? It will be easier rather that removing the
the_content
filter and override it with a new one. Thanks!The text was updated successfully, but these errors were encountered: