wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



shortcode_exists › WordPress Function

Od3.6.0
Przestarzałyn/a
shortcode_exists ( $tag )
Parametry:
  • (string) $tag Shortcode tag to check.
    Wymagane: Tak
Powrót:
  • (bool) Whether the given shortcode exists.
Zdefiniowane na:
Codex:

Determines whether a registered shortcode exists named $tag.



Źródło

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