What determines whether admin toolbar is shown to a logged-in user?
By default, WordPress shows admin toolbar to Administrator, Editor, or Author but not to Subscriber or unauthenticated visitors.
What determines whether admin toolbar is shown a logged-in user? I am wondering if it works based on Role, a specific Capability, or something else. I tried to dig in WordPress core source code to find out but I could not get any clue.