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

/wp-admin/includes/ajax-actions.php  
  1. } else { 
  2. setup_postdata( $post ); 
  3.  
  4. $parsed = do_shortcode( $shortcode ); 
  5.  
  6. if ( empty( $parsed ) ) { 
  7. 'type' => 'no-items',  
  8. 'message' => __( 'No items found.' ),