How to detect if a Shortcode is being called on a page?
I have sometimes wondered the same thing – whether wp maybe checked on save and kept a register etc I had a quick look at the code, and it seems not. There is however a global $shortcode_tags, and wp has this function function get_shortcode_regex() { global $shortcode_tags; $tagnames = array_keys($shortcode_tags); $tagregexp = join( ‘|’, array_map(‘preg_quote’, … Read more