Return to Snippet

Revision: 13426
at April 23, 2009 13:55 by goddess


Updated Code
<?php if (current_user_can('manage_options')){ ?>      
  <a href="/wp-admin">Dashboard</a> - <?php wp_loginout(); ?>       
<?php }?>

Revision: 13425
at April 23, 2009 13:47 by goddess


Initial Code
<?php if (current_user_can('level_10')){ ?>      
  <a href="/wp-admin">Dashboard</a> - <?php wp_loginout(); ?>       
<?php }?>

Initial URL
http://codex.wordpress.org/Roles_and_Capabilities

Initial Description
Down & Dirty Wordpress code to show specific links only to admininstrators. Can be refined using WP roles and Capabilities for more specific needs.

Initial Title
WP Admin Only Links

Initial Tags
wordpress

Initial Language
PHP