Hi
If you look at the part closely, you will probably be able to see that there were originally three plastic prongs (posts) and the two outer ones have broken off. The cord goes through in an "over, under, over" arrangement, locking it firmly in position. I have had some units with broken prongs and an epoxy glue has managed to keep them going for a long time now.
Regards
Geoff