Source View: no_texturize_shortcodes

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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
203       */
204      $no_texturize_tags = apply_filters( 'no_texturize_tags', $default_no_texturize_tags );
205      /**
206       * Filter the list of shortcodes not to texturize.
207       *
208       * @since 2.8.0
209       *
210       * @param array $default_no_texturize_shortcodes An array of shortcode names.
211       */
212      $no_texturize_shortcodes = apply_filters( 'no_texturize_shortcodes', $default_no_texturize_shortcodes );
213
214      $no_texturize_tags_stack = array();
215      $no_texturize_shortcodes_stack = array();
216
217      // Look for shortcodes and HTML elements.
218
219      $tagnames = array_keys( $shortcode_tags );
220      $tagregexp = join( '|', array_map( 'preg_quote', $tagnames ) );
221      $tagregexp = "(?:$tagregexp)(?![\\w-])"; // Excerpt of get_shortcode_regex().