The Replace Image plugin adds a button to the Attachment Details screen which allows you to upload or select an image to replace the current image while retaining the URL and attachment ID. This allows you to easily swap in an updated version of an image without having to re-select it in theme settings pages, post/page content, or anywhere else where it might be referenced.
Important: Disable your browser’s cache and any WordPress caching plugins before use; otherwise, the plugin may appear not to work. See Tools > Replace Image for instructions.
If you like this plugin, please consider leaving a comment or review.
You may also like these plugins
WP Zone has built a bunch of plugins, add-ons, and themes. Check out other favorites here on the repository and don’t forget to leave a 5-star review to help others in the community decide.
- Product Sales Report for WooCommerce – setup a custom sales report for the products in your WooCommerce store with toggle sorting options. Including or excluding items based on date range, sale status, product category and id, define display order, choose what fields to include, and generate your report with a click.
- Export Order Items for WooCommerce – export the order details for each sale in your WooCommerce store. Simplify order fulfillment, generate accounting reports in a few clicks, and download into CSV format for readability and universal compatibility with Export Order Items.
- Force Update Check for Plugins and Themes -force Update Check for Plugins and Themes forces WordPress to run a theme and plugin update check whenever you visit the WordPress updates page
- Connect SendGrid for Emails – connect SendGrid for Emails is a third-party fork of (and a drop-in replacement for) the official SendGrid plugin
- Disable User Registration Notification Emails – when this plugin is activated, it disables the notification sent to the admin email when a new user account is registered.
- Inline Image Upload for BBPress – enables the TinyMCE WYSIWYG editor for BBPress forum topics and replies and adds a button to the editor’s “Insert/edit image” dialog that allows forum users to upload images from their computer and insert them inline into their posts.
- Password Strength for WooCommerce – disables password strength enforcement in WooCommerce.
- Potent Donations for WooCommerce – acceptance donations through your WooCommerce store
- Shortcodes for Divi – allows to use Divi Library layouts as shortcodes everywhere where text comes.
- Stock Export and Import for WooCommerce – generates reports on the stock status (in stock / out of stock) and quantity of individual WooCommerce products.
- Random Quiz Generator for LifterLMS – pull a random set of questions from your quiz so users never get the same question twice when retaking or setting up a practice quiz.
- WP and Divi Icons – adds over 660 custom outline SVG icons to your website. SVG icons are vector icons, so they are sharp and look good on any screen at any size.
- WP Layouts – the best way to organize, import, and export your layouts, especially if you have multiple websites.
- WP Squish – reduce the amount of storage space consumed by your WordPress installation through the application of user-definable JPEG compression levels and image resolution limits to uploaded images.
To view WP Zone’s premium WordPress plugins and themes, visit our WordPress products catalog page.
- Click “Plugins” > “Add New” in the WordPress admin menu.
- Search for “Replace Image”.
- Click “Install Now”.
- Click “Activate Plugin”.
Alternatively, you can manually upload the plugin to your wp-content/plugins directory.
I tried to replace an image but nothing happened.
Your browser is likely still caching the old image. Try doing a hard refresh (Ctrl + F5 on Windows, Apple + R / Command + R on Mac) while viewing the page on the frontend. Note that the backend seems to retain cached image thumbnails even after a hard refresh.
Contribuidores e programadores
“Substituir imagem” é software de código aberto. As seguintes pessoas contribuíram para este plugin:Contribuidores
Registo de alterações
- Add “Replace With AI Image” button
- Updated links, author, changed branding to WP Zone
- Updated tested up to
- Removed donation links,
- Added aspengrovestudios as contributor
- Updated banner and icon
- Plugin now deletes files associated with the old image prior to replacement
- Fixed non-critical PHP warning
- Fixed undefined offset error per https://wordpress.org/support/topic/undefined-index-0-on-line-100-mainfile?replies=1
- Added support for image replacement where the image file being replaced doesn’t exist
- Removed anonymous functions
- Added functionality to prevent image caching in the Media Library
- Fixed a bug where the upload UI would temporarily stop working properly after replacing an image.
- Release inicial