W3cubDocs

/WordPress

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

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

Version Description
4.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/format_for_editor