htmledit_pre хук-фильтрWP 2.5.0

Устарел с версии 4.3.0. Больше не поддерживается и может быть удален. Рекомендуется заменить этот хук на аналог.

Filters the text before it is formatted for the HTML editor.

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

add_filter( 'htmledit_pre', 'wp_kama_htmledit_pre_filter' );

/**
 * Function for `htmledit_pre` filter-hook.
 * 
 * @param string $output The HTML-formatted text.
 *
 * @return string
 */
function wp_kama_htmledit_pre_filter( $output ){

	// filter...
	return $output;
}
$output(строка)
The HTML-formatted text.

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

С версии 2.5.0 Введена.
Устарела с 4.3.0

Где вызывается хук

wp_htmledit_pre()
htmledit_pre
_WP_Editors::editor()
htmledit_pre
wp-includes/deprecated.php 3638
return apply_filters( 'htmledit_pre', $output );
wp-includes/class-wp-editor.php 297
$content = apply_filters_deprecated( 'htmledit_pre', array( $content ), '4.3.0', 'format_for_editor' );

Где используется хук в WordPress

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