The context is the [caption] shortcode found in media.php which contains
img_caption_shortcode also includes these lines:
$output = apply_filters('img_caption_shortcode', '', $attr, $content); if ( $output != '' ) return $output;
I'm trying to manipulate the output the caption shortcode and it struck me that I could filter the function or I could add_shortcode to replace it - is there any difference? and if so what would are the tradeoffs?
Many thanks in advance.