apply_filters( ‘format_for_editor’, string $text, string $default_editor )

In this article

Filters the text after it is formatted for the editor.

Parameters

$textstring
The formatted text.
$default_editorstring
The default editor for the current user.
It is usually either 'html' or 'tinymce'.

Source

return apply_filters( 'format_for_editor', $text, $default_editor );

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.