bp_core_referrer

Return the referrer URL without the http(s)://.

Description

(string) bp_core_referrer(); 

Returns (string)

The referrer URL.


Usage

  1. if ( !function_exists( 'bp_core_referrer' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/2.3.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_referrer(); 
  7.  

Defined (1)

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

/bp-core/deprecated/2.3.php  
  1. function bp_core_referrer() { 
  2. _deprecated_function( __FUNCTION__, '2.3.0', 'bp_get_referer_path()' ); 
  3. $referer = explode( '/', wp_get_referer() ); 
  4. unset( $referer[0], $referer[1], $referer[2] ); 
  5. return implode( '/', $referer );