WordPress at a glance
filter is not described

richedit_pre filter-hook . WP 2.0.0

Deprecated in 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.

Deprecated: 4.3.0

Filters text returned for the rich text editor.

This filter is first evaluated, and the value returned, if an empty string is passed to wp_richedit_pre(). If an empty string is passed, it results in a break tag and line feed.

If a non-empty string is passed, the filter is evaluated on the wp_richedit_pre() return after being formatted.


add_filter( 'richedit_pre', 'filter_function_name_1514' );
function filter_function_name_1514( $output ){
	// filter...

	return $output;
Text for the rich text editor.


Since DEL 4.3.0 Introduced.

Where the hook is called

wp-includes/deprecated.php 3573
return apply_filters( 'richedit_pre', '' );
wp-includes/deprecated.php 3581
return apply_filters( 'richedit_pre', $output );
wp-includes/class-wp-editor.php 296
$content = apply_filters_deprecated( 'richedit_pre', array( $content ), '4.3.0', 'format_for_editor' );

Where the hook is used (in WP core)

Usage not found!