Amazon_S3_And_CloudFront::get_local_url_preview PHP Method

get_local_url_preview() protected method

Get local URL preview.
protected get_local_url_preview ( boolean $escape = true, string $suffix = 'photo.jpg' ) : string
$escape boolean
$suffix string
return string
    protected function get_local_url_preview($escape = true, $suffix = 'photo.jpg')
    {
        $uploads = wp_upload_dir();
        $url = trailingslashit($uploads['url']) . $suffix;
        // Replace hyphens with non breaking hyphens for formatting
        if ($escape) {
            $url = str_replace('-', '‑', $url);
        }
        return $url;
    }
Amazon_S3_And_CloudFront