-
-
Save Roy-Oto/cdd6be28eab44fd3d35b9049402a6489 to your computer and use it in GitHub Desktop.
This is a php file to load WebP into WordPress.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_mime_types( $mimes ) { | |
$mimes['webp'] = 'image/webp'; | |
return $mimes; | |
} | |
add_filter( 'upload_mimes', 'custom_mime_types' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment