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

File: wp-includes/formatting.php

View on Trac

Changelog

Version Description
4.3.0 Introduced.

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