In WP you can filter shortcodes from a string and execute their hooked functions with do_shortcode($string).
Is it possible to filter a single shortcode, instead of all registered shortcodes?
for example I need a few shortcodes to be available for comment posters as well, but not all for obvious reasons 🙂
This works by filtering the global
$shortcode_tags, runningdo_shortcode(), then putting everything back as it was before.Example use;
This will apply the shortcode
tag_1andtag_2to the comment.