I am trying to hide the admin bar for all users except the admin using Advanced Scripts.
I am using this php code:
But it doesn’t work. It’ doesn’t hide the damin bar for anyone. I think I am using the wrong hook. Can anyone give me some pointers?
I am using Advanced Scripts together with Oxygen Builder if that makes any difference.