WordPress.org

Ready to get started?Download WordPress

Forums

Enable Media Replace
Amendment to my update (CloudFlare) (1 post)

  1. rubious
    Member
    Posted 11 months ago #

    Hi Måns,

    You very kindly added a hook for me so that I could use a custom CloudFlare purge function, however the hook you added only gives the GUID of the main image, I've found it can be improved if it is replaced with this:

    do_action("enable-media-replace-upload-done", $_POST["ID"]);

    So I get the ID of the attachment, I can then use that to get all the sizes and purge them all.

    Could you please make this change in your plugin? Otherwise each time it updates I have to edit it again.

    Thanks!
    Shaun (Rubious)

    http://wordpress.org/plugins/enable-media-replace/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.