Determines whether a registered shortcode exists named $tag.
$tagstringrequired
function shortcode_exists( $tag ) {
global $shortcode_tags;
return array_key_exists( $tag, $shortcode_tags );
}
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/shortcode_exists