Changing Max Upload Size in WordPress without editing php.ini

You might have heard that you may need to edit php.ini to change max upload size and other important variables for wordpress but there is no need of it as you can add the below line of code either to functions.php in your theme file or in my custom php functions plugin (which takes care of adding all your functions to functions.php)

@ini_set( 'upload_max_size' , '64M' );

The above code will change the maximum upload size on an wordpress installation to 64M

Scroll to Top