yit_curPageURL

Retrieve the current complete url.

Description

yit_curPageURL(); 

Usage

  1. if ( !function_exists( 'yit_curPageURL' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yith-woocommerce-wishlist/plugin-fw/yit-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = yit_curPageURL(); 
  7.  

Defined (1)

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

/plugin-fw/yit-functions.php  
  1. function yit_curPageURL () { 
  2. $pageURL = 'http'; 
  3. if ( isset( $_SERVER[ "HTTPS" ] ) AND $_SERVER[ "HTTPS" ] == "on" ) { 
  4. $pageURL .= "s"; 
  5.  
  6. $pageURL .= "://"; 
  7.  
  8. if ( isset( $_SERVER[ "SERVER_PORT" ] ) AND $_SERVER[ "SERVER_PORT" ] != "80" ) { 
  9. $pageURL .= $_SERVER[ "SERVER_NAME" ] . ":" . $_SERVER[ "SERVER_PORT" ] . $_SERVER[ "REQUEST_URI" ]; 
  10. } else { 
  11. $pageURL .= $_SERVER[ "SERVER_NAME" ] . $_SERVER[ "REQUEST_URI" ]; 
  12.  
  13. return $pageURL;