wp_enqueue_editor action-hookWP 3.9.0

Fires when scripts and styles are enqueued for the editor.

Usage

add_action( 'wp_enqueue_editor', 'wp_kama_enqueue_editor_action' );

/**
 * Function for `wp_enqueue_editor` action-hook.
 * 
 * @param array $to_load An array containing boolean values whether TinyMCE and Quicktags are being loaded.
 *
 * @return void
 */
function wp_kama_enqueue_editor_action( $to_load ){

	// action...
}
$to_load(array)
An array containing boolean values whether TinyMCE and Quicktags are being loaded.

Changelog

Since 3.9.0 Introduced.

Where the hook is called

_WP_Editors::enqueue_scripts()
wp_enqueue_editor
wp-includes/class-wp-editor.php 891-897
do_action(
	'wp_enqueue_editor',
	array(
		'tinymce'   => ( $default_scripts || self::$has_tinymce ),
		'quicktags' => ( $default_scripts || self::$has_quicktags ),
	)
);

Where the hook is used in WordPress

Usage not found.