WordPress at Your Fingertips

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.

No Hooks.

Return

null. Nothing.

Usage

remove_all_shortcodes();

Notes

  • Global. Array. $shortcode_tags

Changelog

Since 2.5.0 Introduced.

Code of remove_all_shortcodes() WP 5.8.1

function remove_all_shortcodes() {
	global $shortcode_tags;

	$shortcode_tags = array();
}

Shortcodes

No comments
    Log In