WP-Mix

A fresh mix of code snippets and tutorials

Increase upload limits for WordPress

If you’re encountering restrictive upload limits in WordPress, here is a simple fix:

Just add the following to functions.php:

<?php 
@ini_set('upload_max_size', '100M');
@ini_set('post_max_size', '100M');
@ini_set('max_execution_time', '500');
?>

If it’s not working from the functions.php, you may need to create a simple plugin to apply the fix. Fine-tune and test as needed.

Learn more

Digging Into WordPressWordPress Themes In DepthWizard’s SQL Recipes for WordPress