remove_shortcode

The timeline below displays how wordpress function remove_shortcode has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.3

/**
 * Removes hook for shortcode.
 *
 * @since 2.5.0
 *
 * @global array $shortcode_tags
 *
 * @param string $tag Shortcode tag to remove hook for.
 */
function remove_shortcode($tag)
{
    global $shortcode_tags;
    unset($shortcode_tags[$tag]);
}

WordPress Version: 4.2

/**
 * Removes hook for shortcode.
 *
 * @since 2.5.0
 *
 * @uses $shortcode_tags
 *
 * @param string $tag Shortcode tag to remove hook for.
 */
function remove_shortcode($tag)
{
    global $shortcode_tags;
    unset($shortcode_tags[$tag]);
}

WordPress Version: 3.9

/**
 * Removes hook for shortcode.
 *
 * @since 2.5.0
 *
 * @uses $shortcode_tags
 *
 * @param string $tag shortcode tag to remove hook for.
 */
function remove_shortcode($tag)
{
    global $shortcode_tags;
    unset($shortcode_tags[$tag]);
}

WordPress Version: 3.7

/**
 * Removes hook for shortcode.
 *
 * @since 2.5
 * @uses $shortcode_tags
 *
 * @param string $tag shortcode tag to remove hook for.
 */
function remove_shortcode($tag)
{
    global $shortcode_tags;
    unset($shortcode_tags[$tag]);
}