Created
November 21, 2019 21:18
-
-
Save coulterpeterson/29933e6963b41a3152fb5002cdb6211a to your computer and use it in GitHub Desktop.
Increase #wordpress memory limit with functions.php #php
This file contains 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
add_filter('upload_size_limit', 'mups_upload_max_increase_upload'); | |
function mups_upload_max_increase_upload() { | |
// Only enter the numeric value in bytes (eg. 104857600) | |
// 1024 bytes = 1KB | |
// 1048576 bytes = 1MB | |
// (Formula: 1048576 * number of MB required = number of Bytes to enter in above form) | |
return '3145728000'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment