wp_htmledit_pre() WP 2.5.0
Запрещена (устарела) с версии 4.3.0. Больше не поддерживается и может быть удалена. Используйте format_for_editor().
Formats text for the HTML editor.
Unless $output is empty it will pass through htmlspecialchars before the 'htmledit_pre' filter is applied.
Хуки из функции
Возвращает
Строку. Formatted text after filter applied.
Использование
wp_htmledit_pre( $output );
- $output(строка) (обязательный)
- The text to be formatted.
Заметки
- Смотрите: format_for_editor()
Список изменений
С версии 2.5.0 | Введена. |
Устарела с 4.3.0 | Use format_for_editor() |
Код wp_htmledit_pre() wp htmledit pre WP 5.6
function wp_htmledit_pre($output) {
_deprecated_function( __FUNCTION__, '4.3.0', 'format_for_editor()' );
if ( !empty($output) )
$output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); // Convert only '< > &'.
/**
* Filters the text before it is formatted for the HTML editor.
*
* @since 2.5.0
* @deprecated 4.3.0
*
* @param string $output The HTML-formatted text.
*/
return apply_filters( 'htmledit_pre', $output );
}