WordPress Hackery – Limiting Upload Sizes

By November 11, 2017January 4th, 2018Blog, Technology

Here’s a note to self. Limit uploading large files in individual websites by adding this to your functions.php file in the theme directory.


@ini_set( 'upload_max_size' , '4M' );
@ini_set( 'post_max_size', '4M');
@ini_set( 'max_execution_time', '300' );