WordPress开发者和主题制作者的搜索引擎



shortcode_exists ›

Since3.6.0
已弃用n/a
shortcode_exists ( $tag )
参数:
  • (string) $tag Shortcode tag to check.
    Required: Yes
返回:
  • (bool) Whether the given shortcode exists.
定义在:
文档:

Whether a registered shortcode exists named $tag



源码

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