0

We are looking to add ImgIX to a WP site, we have the upload working, via an S3 bucket, but we can't insert the new srcset code in to the img attribute.

There is a WP plugin that we have been using but it doesn't show how to overwrite WPs native srcset.

Does anyone have experience with this?

WP doesn't allow you to overwrite their native srcset code, that we can see. But there must be a way as the WP plugin exists.

We used the PHP library to generate the srcset.

1 Answers1

0

There are a couple filters that you'll want to check:

These are both used by wp_get_attachment_image(). Test if changes to those filters makes changes, and if not, then there's some other function being used to insert the markup.

Caleb
  • 1,058
  • 1
  • 7
  • 18