WordPress at a glance

remove_all_shortcodes() WP 1.0

Clear all shortcodes.

This function is simple, it clears all of the shortcode tags by replacing the shortcodes global by a empty array. This is actually a very efficient method for removing all shortcodes.

Возвращает

Null. Ничего.

No Hooks.

Usage

remove_all_shortcodes();

Notes

  • Global. Array. $shortcode_tags

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

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

Code of remove_all_shortcodes() WP 5.5.1

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

	$shortcode_tags = array();
}

Related Functions

From category: Shortcodes

No comments
    Log In . Register