Skip to content

Instantly share code, notes, and snippets.

View gist:f255fcdd4f8ed2637c3546f8f03ff716
/**
* Strip referer param from URL.
*
* @param string $request_uri
*
* @return string
*/
public function get_url_without_referer( $request_uri ) {
$path = parse_url( $request_uri, PHP_URL_PATH );
You can’t perform that action at this time.