Skip to content

Instantly share code, notes, and snippets.

@sdhundhalva
Created July 2, 2020 15:54
Show Gist options
  • Save sdhundhalva/b8691d2bb13b341c6e624d07d94c603c to your computer and use it in GitHub Desktop.
Save sdhundhalva/b8691d2bb13b341c6e624d07d94c603c to your computer and use it in GitHub Desktop.
All in One WordPress Migration Increase Upload limit from 256 MB to 512MB
<?php
add_filter( 'upload_size_limit', 'dg_increase_upload' );
function dg_increase_upload( $bytes )
{
return 536870912; // 512 MB
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment