Previously hidden admin bar/dashboard becomes visible
-
Greetings. First of all, thanks for an excellent plugin!
The plugin works well and as stated and the issue is not with it.
My issue is that, for non-admins, a previously hidden admin bar and dashboard gets unhidden for the sub-site where registration is enabled.
Can you kindly point me to the specific location of code in your plugin that I can modify to prevent this?I use the following code to hide the admin bar, in my own plugin:
function habfna_hide_admin_bar_settings() { ?> <style type="text/css"> .show-admin-bar { display: none; } </style> <?php } function habfna_disable_admin_bar() { if(!current_user_can('administrator')) { add_filter( 'show_admin_bar', '__return_false' ); add_action( 'admin_print_scripts-profile.php', 'habfna_hide_admin_bar_settings' ); } }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Previously hidden admin bar/dashboard becomes visible’ is closed to new replies.