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 |
---|---|
230 | */ |
231 | $no_texturize_tags = apply_filters( 'no_texturize_tags', $default_no_texturize_tags ); |
232 | /** |
233 | * Filters the list of shortcodes not to texturize. |
234 | * |
235 | * @since 2.8.0 |
236 | * |
237 | * @param array $default_no_texturize_shortcodes An array of shortcode names. |
238 | */ |
239 | $no_texturize_shortcodes = apply_filters( 'no_texturize_shortcodes', $default_no_texturize_shortcodes ); |
240 |
|
241 | $no_texturize_tags_stack = array(); |
242 | $no_texturize_shortcodes_stack = array(); |
243 |
|
244 | // Look for shortcodes and HTML elements. |
245 |
|
246 | preg_match_all( '@\[/?([^<>&/\[\]\x00-\x20=]++)@', $text, $matches ); |
247 | $tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] ); |
248 | $found_shortcodes = ! empty( $tagnames ); |