Are you looking for a way to increase the max file size upload limit from 2 MB to 64 MB? While there’s probably a plugin for this, we have created a quick code snippet that you can use to increase the file size upload limit in WordPress.
The default file size upload limit is 2 MB. You can change it to the sample below as 64 MB or any other size.
All you have to do is add this code to your theme’s php.ini file:
upload_max_filesize = 64M
Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly copy / paste code snippets in WordPress, so you don’t accidentally break your site.
If you liked this code snippet, please consider checking out our other articles on the site like: 62 best free WordPress blog themes and how to create a custom user registration form in WordPress.