Product review (5 stars): Check secure wire connections before ordering.
I'm giving this Five stars even though I did not end up using the product.  Please read on.  I was receiving a F22 error code on my Kenmore HE2 Plus washing machine.  Some research indicated it was the door latch that was having the problem.  Even though this item is Whirlpool it had the same part number for my Kenmore.  I researched how to fix it myself by removing the metal loop & spring from around the opening, sliding over the thick rubber seal and unscrewing the latch from the front of the washer.  this allowed the latch to be come loose and simply unhooking the wires allowed it to be completely removed.  I had ordered this replacement part before removing the original.  While removing the original I discovered one of the wires had come loose when there was a connector that was not plugged in.  Three wire connect this to the washer, two connect near the top around the plastic latch, and one connects near the bottom.  The wire that connects near the bottom had come loose.  This wire was pink in my washer.  Plugging it back in and securing the wire fixed the F22 error and the original latch still worked fine.  The two wires that connect at the top fit securely and snugly.  The wire at the bottom is not a perfect fit, it does not have a clasp that keeps it secure like the other two.  This caused me confusion initially but I tried it anyway after viewing a youtube video and the error code went away and everything worked as before.  The washing machine is quite jittery when in use and with this vibration I expect this wire to come loose again in the future.  Next time I will check all the connections before ordering a new part.