apply_filters( 'richedit_pre', string $output )
- Since
- 2.0.0
Filters text returned for the rich text editor.
Description
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.
Compatibility
Deprecated in WordPress 4.3.0. Kept for back-compatibility; avoid it in new code.
- WordPress
- since 2.0.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$outputstring- Text for the rich text editor.
Where this hook fires · 3
wp-includes/class-wp-editor.php:302_WP_Editors::editor()wp-includes/deprecated.php:3600wp_richedit_pre()wp-includes/deprecated.php:3608wp_richedit_pre()
Source code
* * @since 2.0.0 * @deprecated 4.3.0 * * @param string $output Text for the rich text editor. */ return apply_filters( 'richedit_pre', '' ); } $output = convert_chars($text); $output = wpautop($output); $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) );Changelog
Introduced in 2.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.3.0
Deprecated.from the docblock
2.0.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.