How to determine the maximum upload size allowed in a WordPress site

wp_max_upload_size() is a handy function which will help you find the maximum upload size allowed in php.ini. The size is given in bytes.

echo wp_max_upload_size(); // 2097152

Posted by  on .