wpseek.com
A WordPress-centric search engine for devs and theme authors



shortcode_exists › WordPress Function

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:

Determines whether a registered shortcode exists named $tag.



Source

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