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.


Nothing (null).



Code of remove all shortcodes: wp-includes/shortcodes.php WP 5.2

function remove_all_shortcodes() {
	global $shortcode_tags;

	$shortcode_tags = array();

Related Functions

From category: Shortcodes

No comments
    Hello, !     Log In . Register