• wplearner

    (@wordpresslearner)


    hey, I just need to know how to write a conditional statement based on whether the admin is logged in(not in the dashboard, but rather if the admin is browsing the site, to have content show specifically for him). something along the lines of:

    if (**logged in admin**){
    …do something

    }
    What would be the right syntax, tags for this?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to write conditional statement for logged in admin’ is closed to new replies.