Saves an MD5 hash checksum of the attachment file bytes in the attachment post meta. This 32 character string can be used for file comparisons while not taxing the server as much as other methods.


If a user uploads a photo to a vehicle in the dashboard, it needs meta data that tells this plugin how to order that photo among the others during display. This class sets that and other meta values, including the VIN, and md5 hash checksum of the photo file. If it determines a photo upload is the first photo to be attached to a vehicle, that photo is set as the featured image for the vehicle post.


Filter callback on add_attachment. Decides whether to write meta values on attachments if they are uploaded to vehicles. If this method determines the photo sequence number to be 1, the attachment is also set as the featured image.