htmledit_pre
Filters the text before it is formatted for the HTML editor.
Description
Parameters (1)
- 0. $output (string)
- The HTML-formatted text.
Usage
- To run the hook, copy the example below.
- $output = apply_filters( 'htmledit_pre', $output );
- if ( !empty( $output ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the htmledit_pre callback
- function filter_htmledit_pre( $output ) {
- // make filter magic happen here...
- return $output;
- };
- // add the filter
- add_filter( 'htmledit_pre', 'filter_htmledit_pre', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'htmledit_pre', 'filter_htmledit_pre', 10, 1 );
Defined (2)
The filter is defined in the following location(s).
- /wp-includes/deprecated.php
- return apply_filters( 'htmledit_pre', $output );
- /wp-includes/class-wp-editor.php
- $content = apply_filters( 'htmledit_pre', $content );