remove_all_shortcodes()

In this article

Clears all shortcodes.

Description

This function clears all of the shortcode tags by replacing the shortcodes global with an empty array. This is actually an efficient method for removing all shortcodes.

Source

function remove_all_shortcodes() {
	global $shortcode_tags;

	$shortcode_tags = array();
}

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.