This function has been deprecated. BuddyPress 2.3.0 instead.

bp_core_referrer()

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

Description

Return

(string) The referrer URL.

Source

File: bp-core/deprecated/buddypress/2.3.php

function bp_core_referrer() {
	_deprecated_function( __FUNCTION__, '2.3.0', 'bp_get_referer_path()' );
	$referer = explode( '/', wp_get_referer() );
	unset( $referer[0], $referer[1], $referer[2] );
	return implode( '/', $referer );
}

Changelog

Changelog
Version Description
BuddyPress 2.3.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.