format_for_editor WordPress Filter Hook

The format_for_editor hook is used to format the content of a post for display in the WordPress editor. This hook is called when the content of a post is retrieved from the database and is used to format the content before it is displayed in the editor.

apply_filters( 'format_for_editor', string $text, string $default_editor ) #

Filters the text after it is formatted for the editor.


Parameters

$text

(string)The formatted text.

$default_editor

(string)The default editor for the current user. It is usually either 'html' or 'tinymce'.


Top ↑

Source

File: wp-includes/formatting.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.3.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.

Show More