Skip to content

Instantly share code, notes, and snippets.

@thebigtine
Last active June 11, 2020 11:22
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 thebigtine/b44ce605f529e289e9dbb8ffc15e21ff to your computer and use it in GitHub Desktop.
Save thebigtine/b44ce605f529e289e9dbb8ffc15e21ff to your computer and use it in GitHub Desktop.
<?php
/**
* Filter the upload size limit for non-administrators.
*
* @param string $size Upload size limit (in bytes).
* @return int (maybe) Filtered size limit.
*/
function filter_site_upload_size_limit( $size ) {
$size = 60 * 1024 * 1024;
return $size;
}
add_filter( 'upload_size_limit', 'filter_site_upload_size_limit', 20 );
@thebigtine
Copy link
Author

Add this to your functions.php file to increase the max file upload size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment