remove_shortcode

Removes hook for shortcode.

Description

remove_shortcode( (string) $tag ); 

Parameters (1)

0. $tag (string)
Shortcode tag to remove hook for.

Usage

  1. if ( !function_exists( 'remove_shortcode' ) ) { 
  2. require_once ABSPATH . WPINC . '/shortcodes.php'; 
  3.  
  4. // Shortcode tag to remove hook for. 
  5. $tag = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = remove_shortcode($tag); 
  9.  

Defined (1)

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

/wp-includes/shortcodes.php  
  1. function remove_shortcode($tag) { 
  2. global $shortcode_tags; 
  3.  
  4. unset($shortcode_tags[$tag]);