This is how the plupload upoader is loaded on Media > Add New
do_action( 'pre-plupload-upload-ui' );
// all the html output for plupload's use
do_action( 'post-plupload-upload-ui' );
If it was this instead:
ob_start();
// all the html output for plupload's use
ob_end_clean();
Then no UI, no plupload:
add_action( 'pre-plupload-upload-ui', 'ob_start' );
add_action( 'post-plupload-upload-ui', 'ob_end_clean' );
However, the Add Media button on the post edit screen is a different ball game. Everything is pure js using backbone. I haven’t got my hands dirty with those classes, yet. Someone else might be able to help with removing the Upload section from it and just have the Gallery. Or, you could
- Hide the default Add Media button using js or css.
- Hook into
do_action( 'media_buttons', $editor_id );
to create your own Add Media button. - Load your own UI.
But I’m not sure if that is a great idea.
Related Posts:
- Plupload Intergration in a meta-box?
- Add inline uploader to plugin option page
- Add/change multipart_params parameter when uploading post image
- post_id missing from the wp-admin file upload request
- wp.media add context
- async_upload.php 500 Error when Uploading larger files with slow internet connection and latency
- Get File Object from wp.Uploader
- How to make Plupload zones that will survive changes in core?
- Make inline uploader (plupload) on options page upload to a specific folder
- I want to customize wp.media (the wordpress admin uploader) in order to change the file name but only in video custom post type
- Saving Media – Which Hook is Fired?
- Is it possible to allow zip files to be uploaded in WordPress?
- WordPress monthly upload directory owner set to root
- Set a maximum upload count for users on a specific user role
- Append button to WordPress Image Details modal
- How to set custom upload directory per user after moving content directory
- Importing WordPress Attachments Into Custom Directories In wp-content/uploads/
- add_image_size creating lots of images (of various sizes)
- This file type is not allowed. Please try another
- File Upload Permissions
- Setting the uploads directory
- Retrieving JSON data in ajax request from media uploader
- insert post & Upload post thumbnail from the front end using ajax
- how to add new .webm mime types
- how can i simple change upload folders to %year%/%month%/%day%?
- How can I save the original filename to the database?
- How to side load an image from a service
- Regenerate thumbnails unexpected resolution (96 x 96)
- How to host different file formats/types for a media attachment without creating multiple attachments?
- Can’t write pdf file to upload directory using FPDF
- Change default uploads file using wp Skeleton
- Change default from “Attachment post URL” to “File URL” in Add Media
- how to use media library [closed]
- Adding Adobe files to a wordpress site [closed]
- Copying uploaded images not working in wordpress
- The uploaded file exceeds the upload_max_filesize directive in php.ini
- Media upload on WordPress changes title of image
- Upload file programmatically
- move_uploaded_file() not working on wordpress front end
- Remove upload file types filter for admin
- Prevent small image sizes from being uploaded
- Front-End Social photo upload [closed]
- Protecting uploads not working
- How to get the return value of wp.media({ frame: ‘post’ }) in all cases?
- WordPress Uploads Directory not using dates in links
- Limit image upload
- What is the way to add additional fields to attachments in 3.5+?
- Is there any good way to use SVN for uploads directory?
- Uploaded images do not show on localhost
- WordPress Drag n Drop Uploader – Single File Only
- Multi Upload In Theme Options
- Uploading PDF file and providing download links to them
- How to load attachment in media library for current user?
- Why does get_dirsize return the same size?
- How To Watermark Audio
- Maximum post size?
- tb_show not showing a media upload window . custom plugin
- Storing WordPress Media Library Uploaded files onto a separate domain
- Error: The uploaded file exceeds the upload_max_filesize directive in php.ini [duplicate]
- Creating a podcast directory site – how to allow user to upload “large” files?
- Migrating media files (documents only) to a fresh install and maintaining the same directory structure
- get array of files in uploads dir
- how to disable WordPress flash up-loader?
- WordPress Thumbnail compression depends on the server?
- Better solution for managing media attachments with `wp_editor()`?
- Upload PDF and other files from the Front-End
- How to disable image thumbnails from media manager but not post media uploader?
- How to get file object from file_attachment?
- Do custom post type (CPT) attachments/media store the parent post ID?
- Certain functions are not available when executed with wp_schedule_event
- Upload image fails “upload test” on localhost
- Get uploaded video URL
- How Do I Change the File Permission For Uploaded Files in WordPress?
- WordPress media has all disappeared on wp-admin but still on the server
- The uploaded file exceeds the upload_max_filesize directive in php.ini. showing while uploading a theme
- image not display in media library and thumbnail not display in post
- Using unzip_file() to get contents of file
- How to upload .tex files in wordpress?
- Which WordPress file controls the featured image upload maximum width and height of 3000px
- Moving wp-content folder to public_html
- An error occurred in the upload. Please try again later
- Using Gravity Forms to upload media into library, then attach to post
- Some images not appearing after switching from AWS S3 back to local
- Uploading a file results in attachment post, but file is missing
- Why I am not able to upload media files?
- Featured image to grayscale with PHP imagefilter – which hook to use?
- Store uploads on an external server?
- Force relative path in media library for LAN deployment
- WordPress Media manager select file button, how to prevent hiding?
- Make thumbnail from uploaded image without plugin
- Making Site A Use Site B’s wp-content Folder
- Limit number of uploaded attachments of specific context
- Set featured link not showing
- increase maximum upload file
- How i can upload images to another folder?
- make default upload folder year/month/day wordpress without plugin [duplicate]
- Display Image Upload from Contact Form 7 on Redirect Page [closed]
- media_handle_sideload() fails
- How to upload and add images to the existing post from the front-end with admin approval which is posted by other user
- Image in binary in the data to WordPress media library