xxxxxxxxxx
How to Increase the Maximum File Upload Size in WordPress.
Learn how to modify the upload limit to meet your needs. Access
Premium Features. Weekly Data Backups. Simple User Interface.
Fast Website Loading Time. Plans Include Free SSL.
Trusted Worldwide.
xxxxxxxxxx
// wp-config.php
@ini_set( 'upload_max_size' , '20M' );
@ini_set( 'post_max_size', '13M');
@ini_set( 'memory_limit', '15M' );
xxxxxxxxxx
// Add code to increase PHP upload limit
function increase_upload_limit( $limit ) {
return 10485760; // New upload limit in bytes (e.g., 10MB)
}
add_filter( 'upload_size_limit', 'increase_upload_limit', 20 );