Skip to content

Instantly share code, notes, and snippets.

View ExponentiallyDigital's full-sized avatar

Andrew Newbury ExponentiallyDigital

View GitHub Profile
@EricBusch
EricBusch / add-webp-to-wordpress.php
Created October 6, 2017 18:03
This adds support for webp when importing webp images into WordPress. [datafeedr]
<?php
/**
* Add support for webp to WordPress.
*
* @param array $mime_types
*
* @return array Updated $mime_types array.
*/
add_filter( 'mime_types', 'mycode_mime_types', 20 );