Forum Replies Created

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • in reply to: How to display admin bar for some user role #1611
    bikostudio
    Participant

    Yes I use WooCommerce and I discovered that it coz the problem 🙂
    .. it has function or something blocks it. Ho can i fix this please?

    in reply to: How to display admin bar for some user role #1609
    bikostudio
    Participant

    I copied the functions.php to the child-theme folder then i pasted in it this code and changed the some_role to the role name at it is in user role editor plugin which is data_entry to be like this :

    add_action(‘wp_head’, ‘show_top_admin_menu_bar’, 100);

    function show_top_admin_menu_bar() {
    if (current_user_can(‘data_entry’)) {
    show_admin_bar(true);
    }
    }

    in reply to: How to display admin bar for some user role #1607
    bikostudio
    Participant

    I have also disabled the plugin which hide the admin bar

    in reply to: How to display admin bar for some user role #1606
    bikostudio
    Participant

    Hi Vladimir,

    I did put the code in functions.php file of my active theme, but nothing happened. I have put the user role in if (current_user_can(‘some_role’)) but nothing happened. can you help me please?

Viewing 4 posts - 16 through 19 (of 19 total)