• Resolved tristanleboss

    (@tristanleboss)


    Hello,

    I use WebP Express plugin but when I change a media file using Enable Media Replace and choose to preserve filename, WebP Express doesn’t refresh the generated WebP file because it’s not informed that the file changed.

    Is there an action that is triggeted by your plugin which can provide the media ID so another plugin can do something on media change?

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

    (@petredobrescu)

    Hello @tristanleboss,

    Apologies for the delay, for some reason the notifications from this plugin didn’t reach my mailbox. Here’s a hook that you can use for this purpose:

    do_action("enable-media-replace-upload-done", $target_url, $source_url, $this->post_id);

    It does have the post_id of the media file replaced, therefore it should be just what you need.

    If the WebP Express development team is willing to give us more details about what they need to perform, we’re happy to add an integration with their plugin.

    Please tell us if you need anything else from our side!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.