-
Hi
Can you please add support for webp images.
Lately I added pluging “Plus WebP” to switch to webp images and noticed the the og:image metas went missing.<meta property=”og:image” content=”…..webp”>
<meta property=”og:image:width” content=”1200″>
<meta property=”og:image:height” content=”628″>
<meta property=”og:image:alt” content=”ddddا”>
<meta property=”og:image:type” content=”image/webp”>After some investigation I found that class-image.php > is_valid_image_url() doesn’t have the webp among that valid image extensions.
return in_array( $check[‘ext’], [ ‘jpeg’, ‘jpg’, ‘gif’, ‘png’], true );
Is there a way I can added it without touching the image class ?
Thanks
The ticket ‘Support for webp images og:image’ is closed to new replies.