shortcode_exists( string $tag )

Whether a registered shortcode exists named $tag


Parameters

$tag

(string) (Required) Shortcode tag to check.


Return

(bool) Whether the given shortcode exists.


Source

File: wp-includes/shortcodes.php

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


Changelog

Changelog
Version Description
WP-3.6.0 Introduced.