cf7_get_post_var

The Contact Form 7 - Dynamic Text Extension cf7 get post var shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[cf7_get_post_var]'); 
  1. // variable usage 
  2. $result = do_shortcode('[cf7_get_post_var]'); 
  3. echo $result;  

Defined (1)

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

/contact-form-7-dynamic-text-extension.php  
  1. global $post; 
  2. //echo '<pre>'; print_r($post); echo '</pre>'; 
  3. $val = $post->$key; 
  4. return $val; 
  5. add_shortcode('CF7_get_post_var', 'cf7_get_post_var'); 
  6.  
  7. /** Insert the current URL */ 
  8. function cf7_url() { 
  9. $pageURL = 'http'; 
  10. if( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] == "on") { $pageURL .= "s"; }