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.
Line | Code |
---|---|
1120 | $output = str_replace('>', '>', $output); |
1121 |
|
1122 | return apply_filters('richedit_pre', $output); |
1123 | } |
1124 |
|
1125 | function wp_htmledit_pre($output) { |
1126 | if ( !empty($output) ) |
1127 | $output = htmlspecialchars($output, ENT_NOQUOTES); // convert only < > & |
1128 |
|
1129 | return apply_filters('htmledit_pre', $output); |
1130 | } |
1131 |
|
1132 | function clean_url( $url, $protocols = null, $context = 'display' ) { |
1133 | $original_url = $url; |
1134 |
|
1135 | if ('' == $url) return $url; |
1136 | $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@()]|i', '', $url); |
1137 | $strip = array('%0d', '%0a'); |
1138 | $url = str_replace($strip, '', $url); |