<shortcode>

The Jetpack by WordPress.com 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 (2)

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

/json-endpoints/class.wpcom-json-api-render-shortcode-endpoint.php  
  1.  
  2. return $return; 
  3.  
  4. function do_shortcode( $shortcode ) { 
  5. $result = do_shortcode( $shortcode ); 
  6. return $result; 
  7.  
/modules/contact-form/grunion-contact-form.php  
  1. $shortcode = get_post_meta( $_POST['contact-form-id'], '_g_feedback_shortcode', true ); 
  2.  
  3. // Format it 
  4. if ( $shortcode != '' ) { 
  5. $shortcode = '[contact-form]' . $shortcode . '[/contact-form]'; 
  6. do_shortcode( $shortcode ); 
  7.  
  8. // Recreate form 
  9. $form = Grunion_Contact_Form::$last; 
  10.