-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Block Pattern Directory: Provide documented way to disable #32591
Comments
Thanks, @annezazu, this looks like something pretty important to get in place before 5.8. |
There's already a way to disable |
Ah ha, got it. I made an assumption there that was wrong. Seems like this can be punted for 5.9 in that case :) |
I added a filter when this was merged into core, |
Thanks for the reminder of such an important detail! Let's take this out of the 5.8 board and leave it open until the filter is backported. |
Adds a new section to the editor filters documentation for the filter `should_load_remote_block_patterns` Fixes #32591
Adds a new section to the editor filters documentation for the filter `should_load_remote_block_patterns` Fixes #32591
What problem does this address?
Similar to this issue related to the block plugin directory #23961, there needs to be a documented and official way to disable the Block Pattern Directory. For example, an agency may not want clients adding in patterns, especially since they are theme agnostic.
This is somewhat related to this PR #31924
What is your proposed solution?
I recommend offering a similar solution as documented for the Block Plugin directory so there is some consistency: https://developer.wordpress.org/block-editor/reference-guides/filters/editor-filters/#block-directory
If this is already in place and I missed it, apologies! I haven't seen this determined yet and would like to get it defined as people are inevitably going to ask.
cc @priethor @youknowriad
The text was updated successfully, but these errors were encountered: