1 2 3 4 5 6 7
<?php if(!function_exists('shortcode_exists')) { function shortcode_exists( $tag ) { global $shortcode_tags; return array_key_exists( $tag, $shortcode_tags ); } }