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 |
---|---|
58 |
|
59 | $dynamic_characters = array('/\'(\d\d(?:’|\')?s)/', '/\'(\d+)/', '/(\s|\A|[([{<]|")\'/', '/(\d+)"/', '/(\d+)\'/', '/(\S)\'([^\'\s])/', '/(\s|\A|[([{<])"(?!\s)/', '/"(\s|\S|\Z)/', '/\'([\s.]|\Z)/', '/\b(\d+)x(\d+)\b/'); |
60 | $dynamic_replacements = array('’$1','’$1', '$1‘', '$1″', '$1′', '$1’$2', '$1' . $opening_quote . '$2', $closing_quote . '$1', '’$1', '$1×$2'); |
61 |
|
62 | $static_setup = true; |
63 | } |
64 |
|
65 | // Transform into regexp sub-expression used in _wptexturize_pushpop_element |
66 | // Must do this everytime in case plugins use these filters in a context sensitive manner |
67 | $no_texturize_tags = '(' . implode('|', apply_filters('no_texturize_tags', $default_no_texturize_tags) ) . ')'; |
68 | $no_texturize_shortcodes = '(' . implode('|', apply_filters('no_texturize_shortcodes', $default_no_texturize_shortcodes) ) . ')'; |
69 |
|
70 | $no_texturize_tags_stack = array(); |
71 | $no_texturize_shortcodes_stack = array(); |
72 |
|
73 | for ( $i = 0; $i < $stop; $i++ ) { |
74 | $curl = $textarr[$i]; |
75 |
|
76 | if ( !empty($curl) && '<' != $curl{0} && '[' != $curl{0} |