Found out that overriding some of the wp.media.editor objects methods is the best solution, because it allows you to customize the event handling, but will also preserve a lot of the backend processing and handling that WP has in place for processing images. I basically overrode wp.media.editor.send.attachment, wp.media.gallery.shortcode with my own methods, and wp.media.editor.remove, in order to send the data these methods produce to PHP via an ajax call and process them as I see fit. Thanks to this guy’s guidance. Awesome! https://japaalekhin.llemos.com/how-to-use-wp3-5-media-manager-in-your-plugin-or-theme
Related Posts:
- Set default image link target in Gutenberg image block
- Built-in image lazy loading: Does it come with a polyfill for older browsers?
- Why some images are not allowed to be edited only for thumbnails?
- Is possible to open directly the core WP image editor on a modal?
- show hide image script after 4 seconds [closed]
- Restricting users to view only media library items they have uploaded?
- Prevent WordPress from generating medium_large 768px size of image uploads?
- WordPress crop tool greyed out
- Upload images to remote server
- How to modify image editor dialog options on WordPress?
- WordPress Image Editor not working – conflict?
- Using Images in WordPress – Best Practices
- Media Upload Folder – how to manage
- How to set the default embed image size
- Graphing libraries for WordPress [closed]
- Filter Media Library by author or post_parent
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- How do i upload an image and return the image id?
- Insert Images at Master Uniform Height
- Alter media caption/description conflict in WordPress?
- Restrict the number of images to upload per post
- Upload images using FTP and show them in media
- Media sizes aren’t being created – server config?
- Add visual editor to Media Edit Screen
- custom image size with New Media Manager in wordpress 3.5
- How to store media files in subdomain
- Retrieving and Storing Images Linked from Other Domains on Local Server?
- How to add a media with PHP
- How to make programmatic image upload generate thumbnail and sizes?
- Can’t access ‘Store uploads in this folder’
- How to add qtranslate multi language support for media?
- Best way to strip character entities (%20 etc)
- What’s the best “insert all images” plugin?
- Different upload path per file type
- Getting alt text of featured image
- Get image alt attribute just by image URL
- Is there a way to get attachment data?
- JavaScript and images files are not recognized
- Rename media files generated during upload
- Thumbnails are bigger in size than the original image
- HTML tags in WordPress image caption
- Link to full size image or attachment page in photo theme
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- How Do I Delete All The Images from WordPress
- Change WordPress Media Manager
- Site migration – some images not displaying in Media Library
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Upload media files to Amazon S3
- Is there any action/filter hook to use when an image gets edited in the editor?
- image in my post disappeared after I upload website to remote server
- Handling image uploads without thickbox
- Pull images from the gallery
- How can I create more upload paths, like a post corresponding to a post title folder used to store images of the same product
- WordPress automatically downscaled images larger that original
- How to open default wp image editor screen dynamically?
- Update an image block style programatically
- How to change image atributes right before an image to be saved?
- Is it possible to change ‘Link to’ in all images in all articles?
- add media button is not working
- Searching for any images in media library displays “no media found”
- Ho to add “Create Slider” option to default “Add Media” popup?
- How to filter the image embed code based on link type
- Why it doesn’t show media urls on rest Api? (WordPress)
- How to get file URL from media library
- Edit image results in copies of file being created
- Replace image caption with its title and description
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- Change wp-content/uploads to uploads/%postname%/%image%
- Blank upload.php page
- Post and featured image have the same name, why is the attachment (image) is showing and not the post?
- t5-fresh-editor-stylesheets.php breaks image placement in WP Beta 3 editor
- Export xml use/import images from theme directory
- Upload box media size not working
- Is it possible to change image size used for preview thumnail in Add Media popup
- Moving media library to the media library of completely different site
- Why does WP allow to view and media item as a page
- Howto use WP built in Thickbox for images?
- Upload media only to DB
- Function to remove all classes on images inserted into posts?
- Get images attached to a specific page
- Why WordPress suddenly changed sizes of thumbnails?
- Is there a way in WordPress to convert images to WebP without a plugin?
- Automatically Insert alt attribute above image has h2
- Auto delete pictures in media library by age
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- WordPress Attachments with old images
- Weird encoded error when using wp_generate_attachment_metadata()
- Disable image rename on upload
- Set Featured Image not opening – Stuck at loading
- How to remove “Image Information” and “post date/author” from a media page?
- How can i identify media uploaded to my website that is not being used anywhere anymore?
- image URL changed in wordpress
- Can’t seem to see images on my machine but can on the server
- Attachments without images
- get rid of random string before an for an image path on wordpress
- Serving Images from subdomain in wordpress
- Change Image Size option in the settings in bulk
- Image modification
- User uploads image as “Featured Image” but WordPress resizes it?
- Profile image does not upload