The story
dog + whistle. The figurative senses derive from the whistle's sound frequency, which is too high to be heard by human but can be heard by dogs.
Etymology from Wiktionary, CC BY-SA 4.0.
Today it means: A high-pitched whistle, generally inaudible to humans, used to train dogs. Full definition →