wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



shortcode_exists › WordPress Function

Da3.6.0
Deprecaton/a
shortcode_exists ( $tag )
Parametri:
  • (string) $tag Shortcode tag to check.
    Richiesto:
Ritorna:
  • (bool) Whether the given shortcode exists.
Definito a:
Codex:

Determines whether a registered shortcode exists named $tag.



Sorgenti

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