shortcode_exists() – Whether a registered shortcode exists named $tag

You appear to be a bot. Output may be restricted

Description

Whether a registered shortcode exists named $tag

Usage

$bool = shortcode_exists( $tag );

Parameters

$tag
( string ) required – Shortcode tag to check.

Returns

bool Whether the given shortcode exists.

Source

File name: wordpress/wp-includes/shortcodes.php
Lines:

1 to 4 of 4
function shortcode_exists( $tag ) {
  global $shortcode_tags;
  return array_key_exists( $tag, $shortcode_tags );
}
 

 View on GitHub View on Trac