Last active
June 11, 2020 11:22
-
-
Save thebigtine/b44ce605f529e289e9dbb8ffc15e21ff to your computer and use it in GitHub Desktop.
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
<?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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this to your functions.php file to increase the max file upload size