In my personal experience, golf courses are more likely to have a code for women's wear. Usually the ladies dress code is more strict. We not only have regulations regarding collars and shirtsleeves, we also have regulations regarding shirt, shorts and skirt lengths and restrictions on waistbands (no lowrise, no elastic). Some courses permit shorts. Some say skorts (those hideous shorts with a skirt in the front & shorts in the back) are the only type of shorts permitted. Some say womens pants must be at least calf length. Some say skirts only.
My very slim and elegant mother in law was turned away once for wearing a modest designer outfit with shorts
(no women in trousers permitted!) Naturally Dad tossed her the car keys and said see ya in about four hours!

She's never really enjoyed golf since.
A girlfriend was not permitted to tee up until she presented her shoes top and bottom for inspection. They were checking for women in street shoes. Her male companions did not have to show their shoes.
Most of my friends agree that the dress codes are often designed specifically to weed out women. I don't have an opinion on the subject as I really don't mind asking every time I play a new course. My only grump is when they have a strict dress code for the lady golfers and half naked cart girls and golf geishas. As a mother, I always worry about them catching cold!
