Automatically try to join hidden network if no preferred network available
I have a network with hidden SSID, which I configured using the "Join Other Network".

This was done years ago, and the network is joined when necessary.

You can see (and reorder) "remembered" networks in "Open Network Preferences" Advanced tab