# Disable the Font Library

> Removes the Font Library from the Site Editor, so fonts cannot be installed or uploaded from the editor.

- Type: PHP
- Runs: Run everywhere
- Category: [Disable Features](https://wpide.com/library/category/disable-features/)
- Tags: disable, fonts, site-editor
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/disable-font-library/

## Code

```php
add_filter( 'block_editor_settings_all', function ( $settings ) {
    $settings['fontLibraryEnabled'] = false;

    return $settings;
} );
```

## Notes

Fonts that are already installed keep working.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Disable the Font Library" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
