# gutenberg/22.4.4/lib/remove-core-enqueue-scripts.php

Gutenberg, version 22.4.4. 13 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/22.4.4/code/lib/remove-core-enqueue-scripts.php
- Raw: https://pluginprobe.com/plugins/gutenberg/22.4.4/raw/lib/remove-core-enqueue-scripts.php
- Modified: 2026-01-20T14:42:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gutenberg/22.4.4/code/lib/remove-core-enqueue-scripts.php#L10-L20`.

```php
<?php
/**
 * Removes Core's admin enqueue scripts hooks to prevent duplicate route registration.
 *
 * Core's *_enqueue_scripts functions fire the page init actions, but Gutenberg's
 * render functions also fire them. We remove Core's to avoid duplicate route registration.
 *
 * @package gutenberg
 */

remove_action( 'admin_enqueue_scripts', 'font_library_wp_admin_enqueue_scripts' );
remove_action( 'admin_enqueue_scripts', 'site_editor_v2_wp_admin_enqueue_scripts' );

```
