Без рубрики

Limit the size of uploaded images

//Tip 1: put this at the end of /wp-admin/includes/file.php | Tip 2: works only with non-administrator users function limit_upload_size( $file ) { // Set the desired file size limit $file_size_limit = 1024; // 1MB in KB // exclude admins if ( ! current_user_can( ‘manage_options’ ) ) { $current_size = $file[‘size’]; $current_size = $current_size / 1024; […]

Limit the size of uploaded images Читать далее »

Прокрутить вверх