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.
Contents
Parameters
- $tag
(string)(Required)Shortcode tag to remove hook for.
Source
File: wp-includes/shortcodes.php
function remove_shortcode( $tag ) { global $shortcode_tags; unset( $shortcode_tags[ $tag ] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |