pods_current_url

Get the full URL of the current page.

Description

(string) pods_current_url(); 

Returns (string)

Full URL of the current page


Usage

  1. if ( !function_exists( 'pods_current_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'pods-custom-content-types-and-fields/includes/general.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = pods_current_url(); 
  7.  

Defined (1)

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

/includes/general.php  
  1. function pods_current_url () { 
  2. $url = 'http'; 
  3.  
  4. if ( isset( $_SERVER[ 'HTTPS' ] ) && 'off' != $_SERVER[ 'HTTPS' ] && 0 != $_SERVER[ 'HTTPS' ] ) 
  5. $url = 'https'; 
  6.  
  7. $url .= '://' . $_SERVER[ 'HTTP_HOST' ] . $_SERVER[ 'REQUEST_URI' ]; 
  8.  
  9. return apply_filters( 'pods_current_url', $url );