Skip to content

Instantly share code, notes, and snippets.

@IAmAdamTaylor
IAmAdamTaylor / ReadMe.md
Last active November 28, 2022 03:41
WordPress & WPMU Dev: Regenerate Smush Pro Local WebP images programatically

Enable Media Replace & WPMU Dev Connector (WordPress plugin)

Connects the Enable Media Replace and WPMU Dev (Smush Pro, Hummingbird) plugins together. When an image is replaced using Enable Media Replace, local WebP files created by Smush Pro will be regenerated, and Hummingbird cache will be cleared.

Regnerate Smush Pro Local WebP images programatically when the original image changes.

Tested and working with these versions:

  • WordPress v6.0.1
  • Enable Media Replace v3.6.3