WordPress / WordPress/developer-blog-content
How to disable the font library
Open
@justintadlock is already working on this.
Since Nov 14, 2024.
flow: approved
Snippets
- Dominant language
- No language data
- Stars
- 50
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Discussed in https://github.com/WordPress/developer-blog-content/discussions/326
Originally posted by justintadlock October 25, 2024
This would be a Snippet post that shows how to disable the font library (useful for curating the user experience when used alongside font presets):
add_filter( 'block_editor_settings_all', 'devblog_block_editor_settings' );
function devblog_block_editor_settings( $settings ) {
$settings['fontLibraryEnabled'] = false;
return $settings;
}
Related:
- https://developer.wordpress.org/reference/hooks/block_editor_settings_all/
- https://developer.wordpress.org/news/2024/07/04/15-ways-to-curate-the-wordpress-editing-experience/
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.