WordPress at Your Fingertips

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() WP 5.7.2

<?php
function remove_shortcode( $tag ) {
	global $shortcode_tags;

	unset( $shortcode_tags[ $tag ] );
}

From category: Shortcodes

No comments
    Log In