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'.
Source
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |