-
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
Gutenberg 11.9: Not possible to filter the global style settings anymore #36330
Comments
Hi, @briceduclos We tested this during the Core Editor Triage session today, and the The issue might be with individual settings. Can you share the example code you're using to filter those settings? Thanks |
Hi Brice, by any chance, are you filtering some of the theme settings we retrofit into theme.json? These are If you want to filter one of those settings from the theme the recommended way is to use If you are filtering any other setting, would your specific use case? |
Thanks for your replies. I'm using the following code:
I've just realized it still works in the page/post editor, but it doesn't work in the site editor (Appearance > Editor). |
Hi @Mamaduka, @oandregal, I've found out that Gutenberg 11.9 doesn't use Thanks. |
Hey @briceduclos the code above still works for filtering
It's also worth noting that most of these settings/data flows are experimental until the API is fully matured and changes are expected. The names of the settings communicate that. |
Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks. |
Hi @briceduclos it looks like @oandregal gave more information about the issue you were having and how to resolve that. I believe it is safe to mark this as resolved, if the suggested Rest API isn't working as expected please feel free to open the issue. |
Description
Before Gutenberg 11.9, it was possible to filter the block editor settings using this solution #27504 (comment) posted by @oandregal.
Testing Gutenberg 11.9 RC-3, this solution doesn't work anymore. So, how can we filter the editor settings?
Thanks
Step-by-step reproduction instructions
Use the filter below to modify the editor settings:
add_filter( 'block_editor_settings_all', 'custom_global_styles_settings', PHP_INT_MAX );
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: