Worf had relatively short hair in season 1:
It was perhaps a little longer, but not quite shoulder length in seasons 2 and 3 (first two images are clearly season 2, with Pulaski. Third image is from Sins of the Father):
He grew it out to shoulder length by season 4 (Qpid), and kept it through season 5 (cast shot) and the first half of season 6 (A Fistful of Datas):
But by the second half of season 6, he's grown it long into a ponytail (Birthright, Part II). The quote that The Doc cites below indicates the ponytail debuted in Face of the Enemy but I haven't found a good image of it:
Which he then keeps through the remainder of TNG and all of DS9, as far as I can tell. (Liaisons, Let He Who Is Without Sin..., "Insurrection")
This final screenshot is from the alternate future timeline shown in the TNG finale, All Good Things.... It takes place about 20 years later, and makes it clear that, at least in that timeline, he kept it long.
As for Klingon men in general, it seems like long hair has been much more common for non-Augments. (Heart Of Glory, Rightful Heir, First Contact (ENT)) But it also appeared to not be mandatory (Chang in "The Undiscovered Country").
In-universe, it might be safe to theorize that early in his career, Worf was a little less sure of himself and was attempting to assimilate. But as he got promoted and more comfortable on the Enterprise, he grew his hair out in a nod to Klingon tradition. But that's just speculation.