remove_all_shortcodes

Clear all shortcodes.

Description

remove_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.


Usage

  1. if ( !function_exists( 'remove_all_shortcodes' ) ) { 
  2. require_once ABSPATH . WPINC . '/shortcodes.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = remove_all_shortcodes(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/shortcodes.php  
  1. function remove_all_shortcodes() { 
  2. global $shortcode_tags; 
  3.  
  4. $shortcode_tags = array();