Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* 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 );

This comment has been minimized.

Copy link
Owner Author

@thebigtine thebigtine commented Sep 13, 2019

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