the_editor
Filters the HTML markup output that displays the editor.
Usage
add_filter( 'the_editor', 'wp_kama_the_editor_filter' ); /** * Function for `the_editor` filter-hook. * * @param string $output Editor's HTML markup. * * @return string */ function wp_kama_the_editor_filter( $output ){ // filter... return $output; }
- $output(string)
- Editor's HTML markup.
Changelog
Since 2.1.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-editor.php 265-271
$the_editor = apply_filters( 'the_editor', '<div id="wp-' . $editor_id_attr . '-editor-container" class="wp-editor-container">' . $quicktags_toolbar . '<textarea' . $editor_class . $height . $tabindex . $autocomplete . ' cols="40" name="' . esc_attr( $set['textarea_name'] ) . '" ' . 'id="' . $editor_id_attr . '">%s</textarea></div>' );