Linux 软件免费装
Banner图

Enable Media Replace

开发者 ShortPixel
更新时间 2024年7月23日 14:49
捐献地址: 去捐款
PHP版本: 5.6 及以上
WordPress版本: 6.6
版权: GPLv2 or later
版权网址: 版权信息

标签

replace image replace replace jpg change media remove background

下载

2.1 2.2 2.3 2.4.1 2.5 2.5.1 2.7 2.8 2.8.1 2.8.2 2.9 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.2.1 3.2.4 3.2.5 3.2.6 3.2.8 3.2.9 3.3.0 3.3.1 3.3.10 3.3.11 3.3.12 3.3.2 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.5.0 3.3.4 4.0.0 3.6.2 3.6.3 4.0.1 4.0.2 4.1.2 4.1.4 4.1.5 1.0 2.5.2 2.6 2.9.1 3.0.4 3.0.6 3.2.7 3.3.5 3.6.0 3.6.1 1.2 1.4 4.1.3 1.1 4.0.3 2.4 3.2 1.4.1 1.3 2.0 2.0.1 3.0.5 3.2.2 3.2.3 3.3.3 4.1.0 4.1.1

详情介绍:

A free, lightweight and easy to use plugin that allows you to seamlessly replace an image or file in your Media Library by uploading a new file in its place. No more deleting, renaming and re-uploading files! Now fully compatible with WP Offload Media! New beta feature! You can now remove the background of your images for better integration with eCommerce solutions! Supported by the friendly team that created ShortPixel :) A real timesaver Don't you find it tedious and complicated to first delete a file and then upload another one with the exact same name every time you want to update an image or other uploaded file in the WordPress media library? Well, no longer! Now you can replace any uploaded file in the Edit Media view, where it should be. Replacing Media can be done in two ways: It's simple to replace a file
  1. Simply replace the file. This option requires you to upload a file of the same type as the file you want to replace. The attachment name remains the same regardless of what the file you upload is called.
  2. Replace the file, use the new file name, and update all links. If you check this option, the old file will be replaced with the name and type of the file you are uploading. All links pointing to the current file will be updated to point to the new file name. Additional options for the folder to put the new file in or the date of the new file are also available on the replace screen.
This plugin is very powerful and a must-have for all major websites built with WordPress. It also offers a preview of the replaced image! New beta feature: You can now remove the background of any image! Similar to replacing media, you can also remove the background of the images from the Media Library! The background removal feature sends the images to ShortPixel's API, removes the background and sends them back in a preview window. If everything looks good, just replace the image with the one that has the background removed! If the source image is a PNG file, you will get a transparent background, while the other images default to a solid white background. You also have the option to choose a different color with an embedded color picker. The background removal feature is still in beta and will be free of charge for a reasonable usage. If you don't want to use the background removal feature, add this line to your theme's functions.php file, or use a plugin like Code Snippets: add_filter( 'emr/feature/background', '__return_false' ); A similar filter, for the remote notification system is: add_filter( 'emr/feature/remote_notice', '__return_false' ); To shorten the wait time before redirecting to the media editing screen, use the following filter and specify the wait time in seconds (0 means that redirection is immediate, but may cause problems in certain configurations): add_filter('emr/success/timeout', function () { return 3; }); Show file modification time There is a shortcode that takes the file modification date and displays it in a post or on a page. The code is: [file_modified id=XX format=XXXX] where the "id" is required and the "format" is optional and defaults to your current WordPress settings for date and time format. So [file_modified id=870] would show the last time the file with ID 870 was updated on your site. To get the ID for a file, check the URL when editing a file in the media library (see screenshot #4) If you want more control over the format in which the time is shown, you can use the format option. So [file_modified id=870 format=Y-m-d] would show the date the file was modified but not the time. The format string uses the standard PHP date() formatting tags. Other plugins by ShortPixel: Get in touch!

安装:

Quick and easy installation:
  1. Upload the folder enable-media-replace to your plugin directory
  2. 通过 WordPress 的“插件”菜单激活插件
  3. Done!

屏幕截图:

  • The replace media-button as seen in the "Edit media" view.
  • The upload options.
  • Get the file ID in the edit file URL

常见问题:

Where do I report security bugs found in this plugin?

Please report security bugs found in the source code of the Enable Media Replace plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.

Frequently Asked Questions

What does this plugin actually do?

This plugin makes it easy to update/replace files that have been uploaded to the WordPress Media Library.

How does it work?

A new option will be available in the Edit Media view, called "Replace Media". This is where you can upload a new file to replace the old one.

I replaced a file, but it didn't change!

There are two main reasons this would happen. First, make sure you are not viewing a cached version of the file, especially if you replaced an image. Press "Refresh" in your browser to make sure. Second, if the file really looks unchanged, make sure WordPress has write permissions to the files in your uploads folder. If you have ever moved your WP installation (maybe when you moved it to a new server), the permissions on your uploaded files are commonly reset so that WordPress no longer has permissions to change the files. If you don't know how to do this, contact your web server operator.

更新日志:

4.1.5 Release date: December 14, 2023 4.1.4 Release date: September 22, 2023 4.1.3 Release date: September 14, 2023 4.1.2 Release date: April 24, 2023 4.1.1 Release date: April 13, 2023 4.1.0 Release date: March 28, 2023 4.0.3 Release date: February 21, 2023 4.0.2 Release date: January 13, 2023 4.0.1 Release date: November 23, 2022 4.0.0 Release date: September 5th, 2022 3.6.3 Release date: November 25th, 2021 3.6.2 Release date: November 8th, 2021 3.6.1 Release date: October 27th, 2021 3.6.0 Release date: October 11th, 2021 3.5.0 Release date: October 29th 2020 3.4.2 Release date: August 17th 2020 3.4.1 Release date: June 18th 2020 3.4.0 Release date: June 9th 2020 3.3.12 Release date: 27th April 2020 3.3.11 Release date: 10th March 2020 3.3.10 Release date: 23rd February 2020 3.3.9 Release date: 23rd February 2020 3.3.8 Release date: 18th February 2020 3.3.7 Release date: 13th November 2019 3.3.6 Release date: 5th September 2019 3.3.5 Release date: 25th July 2019 3.3.4 Release date: 23rd July 2019 3.3.3 Release date: 19th July 2019 3.3.2 Release date: 17th July 2019 3.3.1 Release date: 18th June 2019 3.3.0 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 3.2 3.1.1 3.1 3.0.6 3.0.5 3.0.4 3.0.3 3.0.2 3.0.1 3.0 2.9.7RC1 2.9.6 2.9.5 2.9.4 2.9.3 2.9.2 2.9.1 2.9 2.8.2 2.8.1 2.8 2.7 2.6 2.5.2 2.5.1 2.5 2.4.1 2.4 2.3 2.2 2.1 2.0.1 2.0 1.4.1 1.4 1.3 1.2 1.1 1.0