A WordPress-centric search engine for devs and theme authors



remove_all_shortcodes ›

Since2.5.0
Deprecatedn/a
remove_all_shortcodes ( No parameters )
Defined at:
Codex:

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.



Source

function remove_all_shortcodes() {
	global $shortcode_tags;

	$shortcode_tags = array();
}