Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: do_shortcode_tag

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
359       * Filters the output created by a shortcode callback.
360       *
361       * @since 4.7.0
362       *
363       * @param string       $output Shortcode output.
364       * @param string       $tag    Shortcode name.
365       * @param array|string $attr   Shortcode attributes array or empty string.
366       * @param array        $m      Regular expression match array.
367       */
368      return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
369 }
370
371 /**
372  * Search only inside HTML elements for shortcodes and process them.
373  *
374  * Any [ or ] characters remaining inside elements will be HTML encoded
375  * to prevent interference with shortcodes that are outside the elements.
376  * Assumes $content processed by KSES already.  Users with unfiltered_html
377  * capability may get unexpected output if angle braces are nested in tags.