wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



shortcode_exists › WordPress Function

Depuis3.6.0
Dépréciéen/a
shortcode_exists ( $tag )
Paramètres:
  • (string) $tag Shortcode tag to check.
    Requis: Oui
Retourne:
  • (bool) Whether the given shortcode exists.
Défini(e) dans:
Codex:

Determines whether a registered shortcode exists named $tag.



Source

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