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 |
|---|---|
| 234 | $string = wp_kses_hook($string, $allowed_html_fixed, $allowed_protocols); // WP changed the order of these funcs and added args to wp_kses_hook |
| 235 | return wp_kses_split($string, $allowed_html_fixed, $allowed_protocols); |
| 236 | } # function wp_kses |
| 237 | |
| 238 | function wp_kses_hook($string, $allowed_html, $allowed_protocols) |
| 239 | ############################################################################### |
| 240 | # You add any kses hooks here. |
| 241 | ############################################################################### |
| 242 | { |
| 243 | $string = apply_filters('pre_kses', $string, $allowed_html, $allowed_protocols); |
| 244 | return $string; |
| 245 | } # function wp_kses_hook |
| 246 | |
| 247 | function wp_kses_version() |
| 248 | ############################################################################### |
| 249 | # This function returns kses' version number. |
| 250 | ############################################################################### |
| 251 | { |
| 252 | return '0.2.2'; |