Skip to content
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

How to disable the font library #337

Closed
bph opened this issue Nov 14, 2024 · 5 comments
Closed

How to disable the font library #337

bph opened this issue Nov 14, 2024 · 5 comments
Assignees
Labels

Comments

@bph
Copy link
Collaborator

bph commented Nov 14, 2024

Discussed in #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:

@justintadlock
Copy link

@justintadlock justintadlock moved this from To-do to Needs 1st review in Developer Blog Content Board Nov 26, 2024
@justintadlock
Copy link

This one's ready for review.

@justintadlock justintadlock moved this from Needs 1st review to Needs 2nd review in Developer Blog Content Board Nov 27, 2024
@ryanwelcher
Copy link

Second review is 👍

@justintadlock justintadlock moved this from Needs 2nd review to Ready to publish in Developer Blog Content Board Nov 27, 2024
@justintadlock justintadlock moved this from Ready to publish to Published (Done) in Developer Blog Content Board Nov 27, 2024
@justintadlock
Copy link

Social Copy:

Do you need to disable the Font Library for a client site or theme project? You can do it in just a few lines of code with this snippet:

https://developer.wordpress.org/news/snippets/how-to-disable-the-font-library/

@github-project-automation github-project-automation bot moved this from Published (Done) to Ready to publish in Developer Blog Content Board Nov 27, 2024
@bph bph removed the post on social label Dec 9, 2024
@bph
Copy link
Collaborator Author

bph commented Dec 9, 2024

Social post scheduled for 12/10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Ready to publish
Development

No branches or pull requests

3 participants