• Resolved cjhaas

    (@chrisvendiadvertisingcom)


    We are using the core save_post action to index or re-index pages/posts/CTPs and send them to Algolia. Our client would like to use this plugin to replace and rename images, however as far as we can tell, there’s no action that is firing for what specific posts/pages/CPTs the images were used on, so our code doesn’t trigger. Manually clicking “Update” in WordPress on the specific object fixes the problem, but is there anything that we’re missing that would help us?

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

    (@petredobrescu)

    Hello @cjhaas,

    Our plugin uses direct DB queries to do the replacements, without storing any information about the actual posts/pages/CPTs that were updated, therefore, at this moment, there is no programmatic way to retrieve this information. However, since this is a public & free plugin, we are very happy to review a Pull Request with such a feature on our public GitHub repository:

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

    Please tell me if you have any other questions!

Viewing 1 replies (of 1 total)
  • The topic ‘Hooks to notify that a post’s content changed’ is closed to new replies.