Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: no_texturize_tags

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
95
96           $dynamic[ '/\b(\d+)x(\d+)\b/'              ] = '$1×$2'; // 9x9 (times)
97
98           $dynamic_characters = array_keys( $dynamic );
99           $dynamic_replacements = array_values( $dynamic );
100      }
101
102      // Transform into regexp sub-expression used in _wptexturize_pushpop_element
103      // Must do this every time in case plugins use these filters in a context sensitive manner
104      $no_texturize_tags = '(' . implode('|', apply_filters('no_texturize_tags', $default_no_texturize_tags) ) . ')';
105      $no_texturize_shortcodes = '(' . implode('|', apply_filters('no_texturize_shortcodes', $default_no_texturize_shortcodes) ) . ')';
106
107      $no_texturize_tags_stack = array();
108      $no_texturize_shortcodes_stack = array();
109
110      $textarr = preg_split('/(<.*>|\[.*\])/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
111
112      foreach ( $textarr as &$curl ) {
113           if ( empty( $curl ) )