Commit df7a9874 authored by Eugene Manuilov's avatar Eugene Manuilov
Browse files

Added ability to override s3 url.

parent 63ca2409
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ class S3_Uploads {
		$bucket = strtok( $this->bucket, '/' );
		$path   = substr( $this->bucket, strlen( $bucket ) );

		return 'https://' . $bucket . '.s3.amazonaws.com' . $path;
		return apply_filters( 's3_url', 'https://' . $bucket . '.s3.amazonaws.com' . $path );
	}

	public function get_original_upload_dir() {