File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ All features are activated by default when the plugin is activated.
28
28
- Disable comments feeds
29
29
- Disable feeds
30
30
- Disable attachment pages
31
+ - Disable font library
31
32
- Discourage search engines from indexing in non-production environments
32
33
- Remove contributor, subscriber and author roles
33
34
- Remove Gutenberg's front-end block styles
Original file line number Diff line number Diff line change @@ -314,3 +314,14 @@ function sanitize_tiny_mce_html_content(array $config): array
314
314
}
315
315
316
316
add_filter ('tiny_mce_before_init ' , __NAMESPACE__ . '\\sanitize_tiny_mce_html_content ' );
317
+
318
+ // Disable the font library.
319
+ // https://developer.wordpress.org/news/snippets/how-to-disable-the-font-library/
320
+ function disable_font_library (array $ settings ): array
321
+ {
322
+ $ settings ['fontLibraryEnabled ' ] = false ;
323
+
324
+ return $ settings ;
325
+ }
326
+
327
+ add_filter ('block_editor_settings_all ' , __NAMESPACE__ . '\\disable_font_library ' );
You can’t perform that action at this time.
0 commit comments