Thread Starter
iwrate
(@iwrate)
Sorry, I’m not a big WordPress coder, but I would think you could do it with OR statements (not sure how they do those) or something like user_login == (‘USERNAME1′,’USERNAME2’), but I’m not sure if that is supported.
Good luck!
Thread Starter
iwrate
(@iwrate)
Yes. It’s working perfectly for us. Thanks for your help.
Thread Starter
iwrate
(@iwrate)
I found an easy solution… In the visibility section of the menu item, add one of the following conditionals.
If you know the user id
get_current_user_id() == 2;
If you don’t know the user id, but know the username
get_userdata(get_current_user_id())->user_login == ‘USERNAME’;