Support » Plugin: Controlled Admin Access » Hide Admin Toolbar Setting

  • Hi Waseem,

    In the next version, could you please add a setting to disable the admin bar for the users created by the plugin?

    This code hides the bar for all users, on all themes:

    <?php
    add_action('admin_print_scripts-profile.php', 'caa_hide_admin_bar');
    function caa_hide_admin_bar() { ?>
    <style type="text/css">
    	.show-admin-bar {display: none;}
    </style>
    <?php
    }
    add_filter('show_admin_bar', '__return_false');
    ?>

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, that would be awesome. Thanks Waseem.

    Plugin Author Waseem Senjer

    (@waseem_senjer)

    Hi there,
    This has been added to the latest update. Please, update the plugin and let me know if everything works fine for you.

    Hello,

    by disabling the Hide Admin Bar option? it does not work.

    I regretted hiding it, but it is not disabled.

    Help me, greetings

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.