-
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
Shared/Reusable Blocks do not show when using the allowed_block_types
filter
#5893
Comments
Closing in favor of #6070 which is duplicate but with a much detailed description. I consolidated those 2 into one :) |
Having said that, @paulwilde: could you elaborate on this a little more? Reproduction steps would be useful for making sure that we're all on the same page here. My first impression is that this is expected behaviour. If one adds this to their add_filter( 'allowed_block_types', function() {
return [ 'core/paragraph', 'core/image', 'core/quote' ];
} ); Then I would expect that shared blocks should not appear in any of the inserters, as we did not explicitly allow the Conversely, if one adds this to their add_filter( 'allowed_block_types', function() {
return [ 'core/paragraph', 'core/image', 'core/quote', 'core/block' ];
} ); Then I would expect that shared blocks will appear in the various inserters. |
Actually, this isn't a bug in that case. I didn't realise you had to add It might make sense for this fact to be added to the documentation to ease confusion. Also maybe the ability to create shared blocks should be disable if |
I mean, that's just what I think makes sense. Happy to be persuaded otherwise 😄
👍 agreed. |
If you limit the blocks which can be shown using the
allowed_block_types
filter then shared blocks do not appear in the 'Shared' block inserter tab.The text was updated successfully, but these errors were encountered: