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 |
|---|---|
| 1121 | '♥' => '♥', |
| 1122 | '♦' => '♦' |
| 1123 | ); |
| 1124 | |
| 1125 | return str_replace( array_keys($to_ncr), array_values($to_ncr), $text ); |
| 1126 | } |
| 1127 | |
| 1128 | function wp_richedit_pre($text) { |
| 1129 | // Filtering a blank results in an annoying <br />\n |
| 1130 | if ( empty($text) ) return apply_filters('richedit_pre', ''); |
| 1131 | |
| 1132 | $output = convert_chars($text); |
| 1133 | $output = wpautop($output); |
| 1134 | $output = htmlspecialchars($output, ENT_NOQUOTES); |
| 1135 | |
| 1136 | return apply_filters('richedit_pre', $output); |
| 1137 | } |
| 1138 | |
| 1139 | function wp_htmledit_pre($output) { |
| 1140 | if ( !empty($output) ) |
| 1141 | $output = htmlspecialchars($output, ENT_NOQUOTES); // convert only < > & |
| 1142 | |
| 1143 | return apply_filters('htmledit_pre', $output); |
| 1144 | } |
| 1145 | |