WordPress at a glance

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-includes/shortcodes.php WP 5.2.2

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

	unset( $shortcode_tags[ $tag ] );
}

Related Functions

From category: Shortcodes

No comments
    Hello, !     Log In . Register