I was not able to find plugin for that and I think there might be a problem to find one.
Problem is not easy to solve because as I just checked in WordPress database reference (http://codex.wordpress.org/images/9/9e/WP3.0-ERD.png) there is not special container for images in post content.
If I understand correct your plugin needs to:
- hook to action when media is removed,
- search through all your posts looking for image url,
- find in post content image url and html ‘a’ tag for it,
- remove ‘a’ tag with image tag
It is not soo hard to write it but performence of plugin depends on how many posts you have on your blog.
Related Posts:
- Enhance Media Manager for Gallery
- Custom collection in media manager?
- Checking if a file is already in the Media Library
- Adding more options to the instance of an image. (Attachment Display Settings)
- Change Media Uploader default directory
- How to extend LINK TO functionality in ATTACHMENT DISPLAY SETTINGS
- How can I view all WP generated thumbnails in Media Manager?
- Modify how gallery.js builds the shortcode [gallery ...] in tinyMCE?
- Bridge WordPress Media API with custom tinyMCE plugin [closed]
- How to get an image transferred via FTP or script to appear in Media Manager?
- Add Additional File Info (jpeg compression & file size) settings to Edit Images Screen
- Is it possible to modify the media library admin screen?
- Using the component outside the editor. select(‘core’) is null
- How to replicate Media Library “Add New” on Plugin Settings Page
- How to enable sorting in custom media uploader in plugin
- Upload multiple images and insert them into custom html code
- wp_editor add media button not working
- Run a function when new image is uploaded in media library
- How to create wordpress media library UI on plugin page
- wp.media gallery collection sometimes undefined
- Can’t load a script in my plugin page
- function add custom fields to media gallery
- WordPress Dropdown image select
- Changed media upload path for plugin, but generates error & shows wrong url
- How to destroy or dispose wordpress uploder/manager?
- Creating custom Insert Media page
- Thumbnails for media Library images
- How do you filter get_media_items by mime type in a custom media upload tab?
- Open media box library from link
- Upload to a specific media folder created by FileBird Lite
- Load images from CDN and custom features to “Add Media” dialogue
- upload image to wordpress media library failed for custom post type
- How to get the path to the current theme?
- Post meta vs separate database tables
- How to add a javascript snippet to the footer that requires jQuery
- Inserting Taxonomy Terms During a Plugin Activation?
- Replace audio/video enclosure with player?
- Contact Form 7: wp_mail doesn’t work after update to 4.6
- Gutenberg ServerSideRender is deprecated, how to work with new wp.serverSideRender component?
- Turn revisions off in plugin instead of config.php?
- Add an image gallery to a custom post type?
- Unit testing wordpress plugins with plugin options
- Create a clickable name in WP_List_Table for Plugin Admin
- Plugin development without Theme adjustments?
- How to Make a Category Always Selected?
- Disable $title in Plugin Options Screen?
- WordPress Localization and Templating
- Why after a file is programmatically deleted, is there still a reference in the media library?
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- My new WordPress plugin version is not showing up in the plugin directory. It’s been 4 days what could the problem be?
- DataBase connection problem with PHPUnit and WordPress
- Ethics question: what qualifies as a fork? [closed]
- How can I prevent my plugin’s next version from updating one of the files?
- How to i18n text coming from the db or from an external source
- Plugin settings not saving
- WooCommerce Conditional Tag inside plugin
- Add code inside specific wordpress standard function
- Best way to save custom css for an block
- How to hook a custom user function to a wordpress core ajax action?
- Sending post request with wp_remote_post not working correctly
- Plugin callback page
- Is nonce in PHP form and Ajax both necessary?
- How to add WordPress Admin “Insert Link” UI (searches through existing posts for URL) and functionality into a custom plugin?
- Input value from metabox is not found in $_POST after post save
- CMB2 Form Throws No Input File Specified in custom WordPress Plugin
- Input in plugin widget does not allow spaces
- Enqueue script globally
- White screen when activating plugin that sends form via WordPress
- dbDelta SQL Query Not Working
- Plugin README.txt isn’t updating in the Directory (stable tag is correct)
- A question about add_action()
- Can woocommerse be used dynamically for billing from another plugin for payment processing?
- How to display the categories on page using shortcode?
- Plugin index page code executes multiple times
- add_action pre_term_description vs. pre_category_description
- WordPress Plugin Development- When our plugin functions call?
- How to Customize Polylang Language Items
- WordPress Plugin Authoring question about jquery and css
- Create a Plugin to Download Files from Web to Server
- Allow REST API Endpoint to specific user and hide from public
- What to do with the .git folder in a WordPress plugin during local development
- I’m including a html file in my plugin, but it can’t find its css or js files
- Problem in plugin debuging in wordpress
- OOP development and hooks
- mutiple shortcode instance on the same page
- Saving post meta
- Can i use one wp plugin inside other?
- Upgrade routine: Interaction with user confirmation
- Function not working on any file other than the main plugin file
- Pluigin Migration – I need to move a single plugin to a different website
- What do “and” means infront of a variable? [closed]
- Dropdown pages in Settings API
- Fatal error: Call to a member function query() on a non-object 3.6.1
- Fetch the input type date value via ajax
- Sharing changes to a post (preview changes) with another user
- Settings API not Saving to Database or Display
- Error using @wordpress/create-block to create multiple blocks on Windows
- Allow HTML in product attributes and variation for WooCommerce
- How do I modify the error code array used by “shake_error_codes” filter?
- How do I add multiple custom menu Woo-commerce my account page?