WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

format_to_edit() WP 0.71

Acts on text which is about to be edited.

The $content is run through esc_textarea(), which uses htmlspecialchars() to convert special characters to HTML entities. If $richedit is set to true, it is simply a holder for the 'format_to_edit' filter.

Хуки из функции
Возвращает

Строку. The text after the filter (and possibly htmlspecialchars()) has been run.

Использование

format_to_edit( $content, $rich_text );
$content(строка) (обязательный)
The text about to be edited.
$rich_text(true/false)
Whether $content should be considered rich text, in which case it would not be passed through esc_textarea().
По умолчанию: false

Список изменений

С версии 0.71 Введена.
С версии 4.4.0 The $richedit parameter was renamed to $rich_text for clarity.

Код format_to_edit() WP 5.5.1

<?php
function format_to_edit( $content, $rich_text = false ) {
	/**
	 * Filters the text to be formatted for editing.
	 *
	 * @since 1.2.0
	 *
	 * @param string $content The text, prior to formatting for editing.
	 */
	$content = apply_filters( 'format_to_edit', $content );
	if ( ! $rich_text ) {
		$content = esc_textarea( $content );
	}
	return $content;
}