Filter hook 'the_editor'

in WP Core File wp-includes/class-wp-editor.php at line 267

View Source

the_editor

Filter Hook
Description
Filters the HTML markup output that displays the editor.

Hook Information

File Location wp-includes/class-wp-editor.php View on GitHub
Hook Type Filter
Line Number 267

Hook Parameters

Type Name Description
string $output Editor's HTML markup.

Usage Examples

Basic Usage
<?php
// Hook into the_editor
add_filter('the_editor', 'my_custom_filter', 10, 1);

function my_custom_filter($output) {
    // Your custom filtering logic here
    return $output;
}

Source Code Context

wp-includes/class-wp-editor.php:267 - How this hook is used in WordPress core
<?php
 262  		 *
 263  		 * @since 2.1.0
 264  		 *
 265  		 * @param string $output Editor's HTML markup.
 266  		 */
 267  		$the_editor = apply_filters(
 268  			'the_editor',
 269  			'<div id="wp-' . $editor_id_attr . '-editor-container" class="wp-editor-container">' .
 270  			$quicktags_toolbar .
 271  			'<textarea' . $editor_class . $height . $tabindex . $autocomplete . ' cols="40" name="' . esc_attr( $set['textarea_name'] ) . '" ' .
 272  			'id="' . $editor_id_attr . '">%s</textarea></div>'

PHP Documentation

<?php
/**
		 * Filters the HTML markup output that displays the editor.
		 *
		 * @since 2.1.0
		 *
		 * @param string $output Editor's HTML markup.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/class-wp-editor.php
Related Hooks

Related hooks will be displayed here in future updates.