function WebP_upload_mimes( $existing_mimes ) {// add WebP to the list of mime types$existing_mimes[‘WebP’] = ‘image/WebP’;// return the array back to the function with our added mime typereturn $existing_mimes;}add_filter( ‘mime_types’, ‘WebP_upload_mimes’ );
Locations

Locations