WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
Line | Code |
---|---|
3577 | * |
3578 | * If a non-empty string is passed, the filter is evaluated on the wp_richedit_pre() |
3579 | * return after being formatted. |
3580 | * |
3581 | * @since 2.0.0 |
3582 | * @deprecated 4.3.0 |
3583 | * |
3584 | * @param string $output Text for the rich text editor. |
3585 | */ |
3586 | return apply_filters( 'richedit_pre', '' ); |
3587 | } |
3588 |
|
3589 | $output = convert_chars($text); |
3590 | $output = wpautop($output); |
3591 | $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); |
3592 |
|
3593 | /** This filter is documented in wp-includes/deprecated.php */ |
3594 | return apply_filters( 'richedit_pre', $output ); |
3595 | } |
3596 |
|
3597 | /** |
3598 | * Formats text for the HTML editor. |
3599 | * |
3600 | * Unless $output is empty it will pass through htmlspecialchars before the |
3601 | * {@see 'htmledit_pre'} filter is applied. |
3602 | * |
3603 | * @since 2.5.0 |