cf7_get_referrer

The Contact Form 7 - Dynamic Text Extension cf7 get referrer function.

Description

cf7_get_referrer( $atts ); 

Parameters (1)

0. $atts
The atts.

Usage

  1. if ( !function_exists( 'cf7_get_referrer' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php'; 
  3.  
  4. // The atts. 
  5. $atts = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = cf7_get_referrer($atts); 
  9.  

Defined (1)

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

/contact-form-7-dynamic-text-extension.php  
  1. function cf7_get_referrer( $atts ) { 
  2. return isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : '';