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 |
|---|---|
| 33 | $textarr = preg_split('/(<.*>|\[.*\])/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE); |
| 34 | $stop = count($textarr); |
| 35 | |
| 36 | /* translators: opening curly quote */ |
| 37 | $opening_quote = _x('“', 'opening curly quote'); |
| 38 | /* translators: closing curly quote */ |
| 39 | $closing_quote = _x('”', 'closing curly quote'); |
| 40 | |
| 41 | $no_texturize_tags = apply_filters('no_texturize_tags', array('pre', 'code', 'kbd', 'style', 'script', 'tt')); |
| 42 | $no_texturize_shortcodes = apply_filters('no_texturize_shortcodes', array('code')); |
| 43 | $no_texturize_tags_stack = array(); |
| 44 | $no_texturize_shortcodes_stack = array(); |
| 45 | |
| 46 | // if a plugin has provided an autocorrect array, use it |
| 47 | if ( isset($wp_cockneyreplace) ) { |
| 48 | $cockney = array_keys($wp_cockneyreplace); |
| 49 | $cockneyreplace = array_values($wp_cockneyreplace); |
| 50 | } else { |
| 51 | $cockney = array("'tain't","'twere","'twas","'tis","'twill","'til","'bout","'nuff","'round","'cause"); |