Stop editors installing and uploading fonts through the Site Editor's font library, keeping your typography consistent.
add_filter( 'block_editor_settings_all', function ( array $settings ): array {
$settings['fontLibraryEnabled'] = false;
return $settings;
} );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
Since WordPress 6.5, the Site Editor lets users install Google Fonts and upload font files. On a site with a defined brand, extra fonts break consistency and can slow pages down. This snippet turns the font library off.
Setting fontLibraryEnabled to false in block_editor_settings_all removes the “Manage fonts” option from the Site Editor’s typography settings. Fonts your theme already provides keep working.
Open Appearance → Editor → Styles → Typography. The “Manage fonts” button should be gone.