public function redirect_post_location( $location ) {
		if ( ! isset( $_SERVER['HTTP_REFERER'] ) ) {
			return $location;
		}

		$referer = $_SERVER['HTTP_REFERER'];
		$referer = strtolower( $referer );

		if ( strpos( $referer, 'papi-iframe-mode' ) === false ) {
			return $location;
		}

		return sprintf( '%s&papi_css[]=papi-iframe-mode', $location );
	}
public function redirect_post_location( $location ) {
		if ( ! isset( $_SERVER['HTTP_REFERER'] ) ) {
			return $location;
		}

		$referer = $_SERVER['HTTP_REFERER'];
		$referer = strtolower( $referer );

		if ( strpos( $referer, 'papi-iframe-mode' ) === false ) {
			return $location;
		}

		return sprintf( '%s&papi_css[]=papi-iframe-mode', $location );
	}
public function redirect_post_location ( $ location ) { if ( ! isset ( $ _SERVER [ 'HTTP_REFERER' ] ) ) { return $ location ; } $ referer = $ _SERVER [ 'HTTP_REFERER' ] ; $ referer = strtolower ( $ referer ) ; if ( strpos ( $ referer , 'papi-iframe-mode' ) === false ) { return $ location ; } return sprintf ( '%s&papi_css[]=papi-iframe-mode' , $ location ) ; }
Redirect post location when post is in iframe mode.

@param  string $location

@return string
Redirect post location when post is in iframe mode .