WordPress / WordPress/developer-blog-content

How to disable the font library

Open
#337 8 comments 0 reactions 1 assignee View on GitHub

@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:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.