show some code to admins only
-
i want to add code to my footer but have it only appear for admins. i want a link to dashboard.
this code didn’t work. i tried a few variations. i obviously know little php! thanks for any help…
<?php global $current_user;
get_currentuserinfo();
?><?php if ( $current_user->ID == 10 ) { ?>
text that logged in admin users will see – like a link to dashboard
<?php } else { ?>
text for anyone
<?php } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘show some code to admins only’ is closed to new replies.