Title: wp_enqueue_editor
Published: April 25, 2014
Last modified: April 28, 2025

---

# do_action( ‘wp_enqueue_editor’, array $to_load )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_enqueue_editor/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_enqueue_editor/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_enqueue_editor/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_enqueue_editor/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_enqueue_editor/?output_format=md#wp--skip-link--target)

Fires when scripts and styles are enqueued for the editor.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_enqueue_editor/?output_format=md#parameters)󠁿

 `$to_load`array

An array containing boolean values whether TinyMCE and Quicktags are being loaded.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_enqueue_editor/?output_format=md#source)󠁿

    ```php
    do_action(
    	'wp_enqueue_editor',
    	array(
    		'tinymce'   => ( $default_scripts || self::$has_tinymce ),
    		'quicktags' => ( $default_scripts || self::$has_quicktags ),
    	)
    );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-editor.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-editor.php#L893)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-editor.php#L893-L899)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_enqueue_editor/?output_format=md#related)󠁿

| Used by | Description | 
| [_WP_Editors::enqueue_scripts()](https://developer.wordpress.org/reference/classes/_wp_editors/enqueue_scripts/)`wp-includes/class-wp-editor.php` |  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_enqueue_editor/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.9.0](https://developer.wordpress.org/reference/since/3.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_enqueue_editor%2F)
before being able to contribute a note or feedback.