Filter hook 'the_editor_content'

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

Description

Filters the default editor content.

Occurrences

Filename Line Number
wp-includes/class-wp-editor.php 287
wp-includes/widgets/class-wp-widget-text.php 477

Parameters

Type Name Description
string $content Default editor content.
string $default_editor The default editor for the current user. Either 'html' or 'tinymce'.

Usage Examples

Example 1

add_filter( 'the_editor_content', 'format_for_editor'

PHP Doc

/**
		 * Filters the default editor content.
		 *
		 * @since 2.1.0
		 *
		 * @param string $content        Default editor content.
		 * @param string $default_editor The default editor for the current user.
		 *                               Either 'html' or 'tinymce'.
		 */