Used By
| Used By | Description |
|---|---|
| wp-includes/shortcodes.php: has_shortcode() | Whether the passed content contains the specified shortcode |
Whether a registered shortcode exists named $tag
(string) (Required) Shortcode tag to check.
(bool) Whether the given shortcode exists.
File: wp-includes/shortcodes.php
function shortcode_exists( $tag ) {
global $shortcode_tags;
return array_key_exists( $tag, $shortcode_tags );
} | Version | Description |
|---|---|
| 3.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/shortcode_exists