remove_shortcode() WordPress Function

The remove_shortcode() function is used to remove a registered shortcode. It accepts two parameters: the shortcode tag to remove, and a boolean value specifying whether to also unregister the shortcode.

remove_shortcode( string $tag ) #

Removes hook for shortcode.


Parameters

$tag

(string)(Required)Shortcode tag to remove hook for.


Top ↑

Source

File: wp-includes/shortcodes.php

function remove_shortcode( $tag ) {
	global $shortcode_tags;

	unset( $shortcode_tags[ $tag ] );
}

Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.