Hello. Your plugin is working when I use
wp_get_attachment_imageto display an image in my theme.
However, there are instances where I use
wp_get_attachment_image_src(get_post_thumbnail_id( $post_id ), 'large')for example to get the image URL. This is still returning the jpg version of the image. Can I get the webp url returned?
- The topic ‘Get webp image url to use as background image’ is closed to new replies.