Summery Summery

Renders an editor.

Syntax Syntax

wp_editor( string $content, string $editor_id, array $settings = array() )

Description Description

Using this function is the proper way to output all needed components for both TinyMCE and Quicktags. _WP_Editors should not be used directly. See https://core.trac.wordpress.org/ticket/17144.

NOTE: Once initialized the TinyMCE editor cannot be safely moved in the DOM. For that reason running wp_editor() inside of a meta box is not a good idea unless only Quicktags is used. On the post edit screen several actions can be used to include additional editors containing TinyMCE: ‘edit_page_form’, ‘edit_form_advanced’ and ‘dbx_post_sidebar’. See https://core.trac.wordpress.org/ticket/19173 for more information.

Parameters Parameters


(string) (Required) Initial content for the editor.


(string) (Required) HTML ID attribute value for the textarea and TinyMCE. Should not contain square brackets.


(array) (Optional) See _WP_Editors::parse_settings() for description.

Default value: array()

Source Source

File: wp-includes/general-template.php

 * @since 4.6.0
 * @return string[] A list of unique hosts of enqueued scripts and styles.
function wp_dependencies_unique_hosts() {


Changelog Changelog

Version Description
3.3.0 Introduced.

See also See also


Leave a Reply