Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: How to restrict top bar #1449
    boardlife
    Participant

    Hi again

    Thanks for your reply. I tried this for contributors and wrote the code like this:

    add_action(‘wp_head’, my_hide_admin_menu_bar);

    function my_hide_admin_menu_bar() {

    if (current_user_can(‘contributor’)) {
    show_admin_bar(false);
    }

    }

    It won’t work. Did I get the code right?

Viewing 1 post (of 1 total)