do_shortcode_tag filter-hookWP 4.7.0

Filters the output created by a shortcode callback.


add_filter( 'do_shortcode_tag', 'wp_kama_do_shortcode_tag_filter', 10, 4 );

 * Function for `do_shortcode_tag` filter-hook.
 * @param string       $output Shortcode output.
 * @param string       $tag    Shortcode name.
 * @param array|string $attr   Shortcode attributes array or empty string.
 * @param array        $m      Regular expression match array.
 * @return string
function wp_kama_do_shortcode_tag_filter( $output, $tag, $attr, $m ){

	// filter...
	return $output;
Shortcode output.
Shortcode name.
Shortcode attributes array or empty string.
Regular expression match array.


Since 4.7.0 Introduced.

Where the hook is called

wp-includes/shortcodes.php 368
return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );

Where the hook is used in WordPress

Usage not found.