remove_shortcode() WP 1.0
Removes hook for shortcode.
No Hooks.
Return
Null. Nothing.
Usage
remove_shortcode( $tag );
- $tag(string) (required)
- Shortcode tag to remove hook for.
Notes
- Global. Array. $shortcode_tags
Changelog
Since 2.5.0 | Introduced. |
Code of remove_shortcode() remove shortcode WP 5.6
function remove_shortcode( $tag ) {
global $shortcode_tags;
unset( $shortcode_tags[ $tag ] );
}