Support » Themes and Templates » Use current_user_can in admin bar?

  • Hi there

    Trying to set up some different menus in my admin bar depending on user capabilities.

    But using the current_user_can just give my the message that Call to undefined function wp_get_current_user()

    What am I missing here? How do I get the right values if the function is declared later?


  • The topic ‘Use current_user_can in admin bar?’ is closed to new replies.