Filters the output created by a shortcode callback.
Parameters
$output
string- Shortcode output.
$tag
string- Shortcode name.
$attr
array- Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
$m
array- 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),