htmledit_pre
Deprecated from version 4.3.0. It is no longer supported and can be removed in future releases. It is recommended to replace this hook with the same one.
Filters the text before it is formatted for the HTML editor.
Usage
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(string)
- The HTML-formatted text.
Changelog
Since 2.5.0 | Introduced. |
Deprecated since | 4.3.0 |
Where the hook is called
htmledit_pre
wp-includes/deprecated.php 3624
return apply_filters( 'htmledit_pre', $output );
wp-includes/class-wp-editor.php 295
$content = apply_filters_deprecated( 'htmledit_pre', array( $content ), '4.3.0', 'format_for_editor' );