WordPress at a glance

remove_shortcode() WP 1.0

Removes hook for shortcode.

Возвращает

Null. Ничего.

No Hooks.

Usage

remove_shortcode( $tag );
$tag(string) (required)
Shortcode tag to remove hook for.

Notes

  • Global. Array. $shortcode_tags

Список изменений

С версии 2.5.0 Введена.

Code of remove_shortcode() WP 5.5.1

wp-includes/shortcodes.php
<?php
function remove_shortcode( $tag ) {
	global $shortcode_tags;

	unset( $shortcode_tags[ $tag ] );
}

Related Functions

From category: Shortcodes

No comments
    Log In . Register