Amazon_S3_And_CloudFront::maybe_update_cloudfront_path PHP Method

maybe_update_cloudfront_path() public method

Potentially update path for CloudFront URLs.
public maybe_update_cloudfront_path ( string $path ) : string
$path string
return string
    public function maybe_update_cloudfront_path($path)
    {
        if ('cloudfront' === $this->get_setting('domain')) {
            $path_parts = apply_filters('as3cf_cloudfront_path_parts', explode('/', $path), $this->get_setting('cloudfront'));
            if (!empty($path_parts)) {
                $path = implode('/', $path_parts);
            }
        }
        return $path;
    }
Amazon_S3_And_CloudFront