richedit_pre
The WordPress Core richedit pre hook.
Description
Parameters (1)
- 0. $content (unknown)
- The content.
Usage
- To run the hook, copy the example below.
- $content = apply_filters( 'richedit_pre', $content );
- if ( !empty( $content ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the richedit_pre callback
- function filter_richedit_pre( $content ) {
- // make filter magic happen here...
- return $content;
- };
- // add the filter
- add_filter( 'richedit_pre', 'filter_richedit_pre', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'richedit_pre', 'filter_richedit_pre', 10, 1 );
Defined (3)
The filter is defined in the following location(s).
- /wp-includes/class-wp-editor.php
- $content = apply_filters( 'richedit_pre', $content );
- /wp-includes/deprecated.php
- return apply_filters( 'richedit_pre', '' );
- return apply_filters( 'richedit_pre', $output );