Even after disabling toolbar for subscribers, they still see it

[ad_1]

So i dont know how this is happening, but eventhough ive disabled the option to see the toolbar for subscribers on the website, they can still see it, ive tried also using a plugin and code, but none seem to work, any help?

[ad_2]
1 Comment
  1. Try with a theme function snippet:

    add_action(‘after_setup_theme’, ‘remove_admin_bar’);
    function remove_admin_bar() {
    if (!current_user_can(‘administrator’) && !is_admin()) {
    show_admin_bar(false);
    }
    }

    You can add the code with this plugin for easier management:

    [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer