Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_editor

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
253           }
254
255           /**
256            * Filters the HTML markup output that displays the editor.
257            *
258            * @since 2.1.0
259            *
260            * @param string $output Editor's HTML markup.
261            */
262           $the_editor = apply_filters(
263                'the_editor',
264                '<div id="wp-' . $editor_id_attr . '-editor-container" class="wp-editor-container">' .
265                $quicktags_toolbar .
266                '<textarea' . $editor_class . $height . $tabindex . $autocomplete . ' cols="40" name="' . esc_attr( $set['textarea_name'] ) . '" ' .
267                'id="' . $editor_id_attr . '">%s</textarea></div>'
268           );
269
270           // Prepare the content for the Visual or Text editor, only when TinyMCE is used (back-compat).
271           if ( self::$this_tinymce ) {