cf7_get_current_user

The Contact Form 7 - Dynamic Text Extension cf7 get current user shortcode.


Usage

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

Defined (1)

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

/contact-form-7-dynamic-text-extension.php  
  1. $current_user = wp_get_current_user(); 
  2. $val = $current_user->$key; 
  3. return $val; 
  4. add_shortcode('CF7_get_current_user', 'cf7_get_current_user'); 
  5.  
  6.  
  7.  
  8. function cf7_get_referrer( $atts ) { 
  9. return isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : '';