Support » Plugin: WP Offload S3 Lite » Conflict with wp_insert_attachment?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi – just following up on this ticket for help? Thanks.

    Hi Darryl

    It looks like our plugin is working, the image is being uploaded to S3 when the theme uploads the image, and when you view it in the library, the S3 URL is used.

    Have you got the ‘Remove Files From Server’ setting enabled? If so, I would assume the theme is actually looking for the local URL of the image, which doesn’t exist.

    if that is the case, the theme developer would need to use wp_get_attachment_url() when fetching the image URL for the newly created attachment. This allows our plugin to filter on the URL and rewrite as the S3 one.

    Let me know how that goes.


    Hi Iain,

    Thanks for getting back to me.

    We didn’t have remove files from server enabled when we were testing this.

    I’ve sent your response to the theme dev, and will see what he says.

    Appreciate the help.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict with wp_insert_attachment?’ is closed to new replies.