the_editor_content WordPress Filter Hook

The `the_editor_content` hook is used to filter the content before it is displayed in the editor. This hook is used to filter the content of the post before it is edited.

apply_filters( 'the_editor_content', string $content, string $default_editor ) #

Filters the default editor content.


Parameters

$content

(string)Default editor content.

$default_editor

(string)The default editor for the current user. Either 'html' or 'tinymce'.


Top ↑

Source

File: wp-includes/class-wp-editor.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.