/ Published in: PHP
URL: http://codex.wordpress.org/Roles_and_Capabilities
Down & Dirty Wordpress code to show specific links only to admininstrators. Can be refined using WP roles and Capabilities for more specific needs.
Expand |
Embed | Plain Text
<?php if (current_user_can('manage_options')){ ?> <a href="/wp-admin">Dashboard</a> - <?php wp_loginout(); ?> <?php }?>
You need to login to post a comment.
