Skip to content

Instantly share code, notes, and snippets.

@coulterpeterson
Created November 21, 2019 21:18
Show Gist options
  • Save coulterpeterson/29933e6963b41a3152fb5002cdb6211a to your computer and use it in GitHub Desktop.
Save coulterpeterson/29933e6963b41a3152fb5002cdb6211a to your computer and use it in GitHub Desktop.
Increase #wordpress memory limit with functions.php #php
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