<shortcode>

The WordPress Core shortcode shortcode.


Usage

  1. // assign value 
  2. $shortcode = 'dynamic_tag'; 
  3.  
  4. // basic usage 
  5. echo do_shortcode("[$shortcode]"); 
  1. // assign value 
  2. $shortcode = 'dynamic_tag'; 
  3.  
  4. // variable usage 
  5. $result = do_shortcode("[$shortcode]"); 
  6. echo $result;  

Defined (1)

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

/include/widget.php  
  1. $shortcode = "[subscribe2" . $hide . $postid . $size . $nojs . $noantispam . "]"; 
  2. echo $before_widget; 
  3. echo $before_title . $title . $after_title; 
  4. echo "<div class=\"" . $div . "\">"; 
  5. $content = do_shortcode( $shortcode ); 
  6. if ( !empty($widgetprecontent) ) { 
  7. echo $widgetprecontent; 
  8. echo $content; 
  9. if ( !empty($widgetpostcontent) ) {