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?
- show hide image script after 4 seconds [closed]
- 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
- Graphing libraries for WordPress [closed]
- Filter Media Library by author or post_parent
- How do i upload an image and return the image id?
- Restrict the number of images to upload per post
- Upload images using FTP and show them in media
- 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
- What’s the best “insert all images” plugin?
- Different upload path per file type
- JavaScript and images files are not recognized
- Rename media files generated during upload
- Thumbnails are bigger in size than the original image
- 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
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- 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 to change image atributes right before an image to be saved?
- Is it possible to change ‘Link to’ in all images in all articles?
- 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
- 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
- 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
- Is there a way in WordPress to convert images to WebP without a plugin?
- Automatically Insert alt attribute above image has h2
- 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
- Image modification
- WordPress append -1 to the image name
- cant upload media/pictures to my wordpress site, cant upload anything to my database
- Landing Page with HTML CSS JS and Images on wordpress
- Updated wordpress missing image upload area
- Post-processing of the image failed
- Image alt attribute
- js alert in add_filter function for image_send_to_editor
- WordPress Javascript displaying an image Question
- Modify media file markup output
- Unable to delete images in Media Library
- How to regularly backup and update WordPress website with lot of images?
- Newly uploaded images are not updating in featured image
- wordpress images not showing properly
- Display images from JS?
- image_send_to_editor filter – Unwanted paragraphs and line breaks
- Edit image itself
- Create slider option in editor
- Content around featured image
- How do I display image files as links?
- How do I embed youtube video via url in frontend posting
- Missing Images in Uploads Directory (Server Only)
- Set padding for all content except images and few more elements
- Broken Media Library
- 3.5.x Theme Customize: Handling Custom Control Requests
- Change image link in excerpt to point to post
- Aviary + WordPress Media
- WP is showing wrong image dimensions
- Script not working in WordPress [duplicate]
- WordPress API, creating Featured Media from image url (nodejs)
- Uploading media to wordpress API with C# HttpClient
- Media Library Issues
- How do I display a PDF thumbnail as a link to the PDF without uploading the image
- Featured Image add tab