Skip to content

Instantly share code, notes, and snippets.

@tzangms
Created January 21, 2015 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzangms/13821e01c7316772a1e2 to your computer and use it in GitHub Desktop.
Save tzangms/13821e01c7316772a1e2 to your computer and use it in GitHub Desktop.
Modify Wordpress S3 plugin to support non us region
// Find line 386, in amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php
$s3client = $this->get_s3client( $region );
// Add this line below
$s3client->setRegion('ap-northeast-1');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment