A WordPress-centric search engine for devs and theme authors



shortcode_exists ›

Since3.6.0
Deprecatedn/a
shortcode_exists ( $tag )
Parameters:
  • (string) $tag Shortcode tag to check.
    Required: Yes
Returns:
  • (bool) Whether the given shortcode exists.
Defined at:
Codex:

Whether a registered shortcode exists named $tag



Source

function shortcode_exists( $tag ) {
	global $shortcode_tags;
	return array_key_exists( $tag, $shortcode_tags );
}