wp_htmledit_pre()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
wp_htmledit_pre( string $output ): string
Описание
Если $output не пуст, он будет пропущен через htmlspecialchars перед применением фильтра ‘htmledit_pre’.
См. alsoformat_for_editor()
Оригинал (английский)
Unless $output is empty it will pass through htmlspecialchars before the ‘htmledit_pre’ filter is applied.
Параметры
$output
string
обязательный
Возвращаемое значение
string
Исходный код
wp-includes/deprecated.php:3629
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 );
}
История изменений
| Версия | Описание |
|---|---|
| 4.3.0 | Deprecated. Use format_for_editor() |
| 2.5.0 | Introduced. |

