Filters the output created by a shortcode callback.
Parameters
$outputstring- Shortcode output.
$tagstring- Shortcode name.
$attrarray- Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
$marray- Regular expression match array.
Source
return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
Another useful functionality is to enqueue shortcode-specific scripts,
first you register your script, which doesn’t actually get printed on your page unless your enqueue it if your shortcode is called.
This filter is very useful to either add additional content at the end of a shortcode (for example an inline script),