How to test if admin bar is visible
-
Hi,
Currently I am testing like so:
global $user_ID; if($user_ID && current_user_can('level_10')) { // do something }
But I want to catch the any admin bar (including for editors etc etc) since I need to adjust the css of my page otherwise content goes under the bar.
Thanks for any help
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How to test if admin bar is visible’ is closed to new replies.