WPDev.one
Core Function
View Source on Trac ↗

shortcode_exists()

shortcode_exists( mixed $tag )

Determines whether a registered shortcode exists named $tag.

Parameters 1 required

Name / Type Description
$tag
string

Shortcode tag to check.

Required

Return Value

(bool)
Whether the given shortcode exists.

Function Information

Since Version
3.6.0
Source File
wp-includes/shortcodes.php
Advertisement