The conditional needs to test against strings which would be the name of the shortcode. If you’re looking for the [hello]
shortcode the conditional would look like:
echo '<pre>'; print_r( $shortcode_tags['hello'] ); echo '</pre>';
So if you use add_shortcode()
the string you’ll be looking for is the first parameter: $tag
.