That number is taken from wp_max_upload_size(), and there is a filter: 'upload_size_limit'. See wp-admin/includes/template.php.
So this should work (not tested):
add_filter( 'upload_size_limit', 'wpse_70754_change_upload_size' );
function wpse_70754_change_upload_size()
{
return 1000 * 1024;
}
Related Posts:
- Uploading media with the REST API
- Adding a custom image upload size and making it selected by default?
- Failed media upload: “The uploaded file was only partially uploaded.”
- How to upload imagick resource to media in wordpress
- Upload images and attachments from frontend form
- WordPress media upload “HTTP error”
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- How do I get around “Sorry, this file type is not permitted for security reasons”?
- WordPress automatically adds links to uploaded images
- Get featured image with custom size outside WordPress
- Why is my max_upload_filesize being limited to 2M? [duplicate]
- Custom upload folder
- Convert all uploaded PNG files to PNG-8 format
- How to decrease the max file upload size without using php.ini or htaccess?
- Hook on file upload
- wp_delete_attachment not working with multiple values
- Can’t upload files
- Edit Image/Image Details – Replace button missing
- How to automatically convert images to WebP on WordPress?
- How to make a image-size selected by default in Media upload – WP v3.5
- How to change upload directory in wp_handle_upload
- Set media upload attachment link to none and hide it in WP v3.5
- Change the filename format of saved featured images
- How to register images uploaded via FTP in media library?
- Using file_exists to check file in Uploads
- PHP/Manual use of images? – 2 Questions
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- Rename image uploads with width in filename
- Modify image while uploading
- Debugging upload problem: What part of WP does actual image-resizing?
- Add custom image sizes to media uploader
- Limit the_excerpt with max of x characters
- Accessing a random image via ajax
- Make WordPress upload directory outside wordpress root with custom url
- Adding featured image via PHP
- How to enlarge the media file upload size in wordpress admin
- How do I get images (with a thumbnail preview) to show in search results?
- File upload, uploads only file name
- Adding a querystring to an image URL when clicking ‘insert into post’?
- Custom image upload
- wp_handle_upload – The uploaded file could not be moved to wp-content/uploads/2012/09
- is it possible to force wordpress to always save thumbnails as ‘jpg’ not ‘png’
- Memory errors with media upload, WordPress can’t use more than 96M (while there’s 512 available!)
- Get most recent media upload
- Convert all images to PNG on file upload
- Upload Image in a WordPress page using PHP
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- Using file_get_contents with Gravity Forms uploads folder to create images in the media library returning false
- how to retrieve uploaded url of zip files
- How do you use WP slugs for PDF files / media?
- Image upload via FormData API and AJAX is not working ($_FILES always empty)
- Need help with Google drive API [closed]
- Can’t upload image using media_sideload_image
- Limit 1 global comment per minute
- Attach previously uploaded image to post – current code has unexpected results
- Change WordPress Upload Folder using wp handle upload
- How do I Import / Upload Files with jQuery AJAX?
- WordPress function when file is uploaded, deleted or edited
- Returning data instead of echoing/printing
- zip unzip attachments in wordpress
- WordPress import media error
- WordPress get_media_embedded
- Upload multiple files in randomly generated folder using wp_upload_bits
- Can’t upload CSV file to plugin directory using custom upload form in admin panel
- WordPress upload file size error even after raising php limits
- Get uploaded image and attach it to the new post
- Images Uploaded saving onto older/previous year folders
- How do I increase the upload size only when editing special pages?
- Convert canvas to image and upload image to server
- How to get the filename from file system and create a download link?
- Get URL of Featured Image After wp_insert_post()
- How to Make Thumbnail of Post Stay Animated
- Hide media for non logged in users
- Some problems in custom widget
- Checking page before applying image restrictions while uploading
- Change image data durgin upload
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?
- How can i limit the number of posts to the most recent 6 in my query?
- Change upload URL by mime type
- I want url from a file in media using title file
- Crop an image after upload on custom account page
- media_handle_upload fails with gravity form submitted image
- Restrict File Type Uploads by User on Wordress via functions.php
- Renaming “Expand Details” within “Add Media”
- Get posts associated with media attachment
- Limit Search Queries per IP per Day
- Save the outputted image into the Media Library, with a different filename and extension
- WordPress will suddenly stop saving files uploaded by my code (ran in nopriv ajax)
- Image limit from 1 to 5
- Name Input from widget displays Sidebar name instead of saved data
- show/hide attachments
- File Upload with Server in safe_mode
- Correct Syntax for uploading files to custom directory in WordPress
- Can’t upload files 1MB+ [closed]
- Generate and upload screenshot as featured image for user-submitted post
- Pull latest Youtube Video from json url and make new post
- WordPress directories not writable after PHP version upgrade
- Changing upload directory temporarily
- Restricting Image Upload Sizes using ‘wp_handle_upload_prefilter’ – Stuck media progress bar when Featured Image?