• Resolved webb64b

    (@webb64b)


    Is it possible to trigger the image replacement with a function? Let’s say I pass a new image URL and an existing URL to a function and then the new image replaces the existing?

Viewing 1 replies (of 1 total)
  • Plugin Author Pedro

    (@petredobrescu)

    Hello @webb64b,

    Unfortunately, our plugin doesn’t have such capabilities. It only works with newly uploaded files and not URLs. In other words, the plugin doesn’t have the necessary mechanisms to download a file from a URL, and then use it to replace an existing image based on its URL.

    However, that sounds like a pretty cool feature and we always welcome Pull Requests on our public GitHub repository:

    https://github.com/short-pixel-optimizer/enable-media-replace/

    Please tell us if you have any other questions!

Viewing 1 replies (of 1 total)
  • The topic ‘Trigger image replace with PHP function’ is closed to new replies.