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 |
---|---|
2922 | * in a break tag and line feed. |
2923 | * |
2924 | * If a non-empty string is passed, the filter is evaluated on the wp_richedit_pre() |
2925 | * return after being formatted. |
2926 | * |
2927 | * @since 2.0.0 |
2928 | * |
2929 | * @param string $output Text for the rich text editor. |
2930 | */ |
2931 | return apply_filters( 'richedit_pre', '' ); |
2932 | } |
2933 |
|
2934 | $output = convert_chars($text); |
2935 | $output = wpautop($output); |
2936 | $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); |
2937 |
|
2938 | /** This filter is documented in wp-includes/formatting.php */ |
2939 | return apply_filters( 'richedit_pre', $output ); |
2940 | } |
2941 |
|
2942 | /** |
2943 | * Formats text for the HTML editor. |
2944 | * |
2945 | * Unless $output is empty it will pass through htmlspecialchars before the |
2946 | * 'htmledit_pre' filter is applied. |
2947 | * |
2948 | * @since 2.5.0 |