How to determine if an admin is logged in outside the loop
I need to be able to tell if an admin is logged in ouside of the loop.
This is needed for some php files that are part of a WP site but do not use require( '../wp-load.php );
What I need to do is keep the Google Analytics tracker JS from firing for logged in admins, but track everyone else.
How do I find out if an admin is logged in outside of the loop? Checking the WP logged in cookie? Or must I use wp-load.php
?