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.

  • Global. Array. $shortcode_tags

No Hooks.

Return

Nothing (null).

Usage

remove_all_shortcodes();

Code of remove_all_shortcodes: wp-includes/shortcodes.php VER 4.9.8

<?php
function remove_all_shortcodes() {
	global $shortcode_tags;

	$shortcode_tags = array();
}

Related Functions

From category: Shortcodes

No comments
    Hello, !     Log In . Register