Created
July 2, 2020 15:54
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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