wpcf7_get_request_uri

The Contact Form 7 wpcf7 get request uri function.

Description

wpcf7_get_request_uri(); 

Usage

  1. if ( !function_exists( 'wpcf7_get_request_uri' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpcf7_get_request_uri(); 
  7.  

Defined (1)

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

/includes/functions.php  
  1. function wpcf7_get_request_uri() { 
  2. static $request_uri = ''; 
  3.  
  4. if ( empty( $request_uri ) ) { 
  5. $request_uri = add_query_arg( array() ); 
  6.  
  7. return esc_url_raw( $request_uri );