Posted By

fatihturan on 08/14/10


Tagged

wordpress


Versions (?)

Display Specific Content for Admin Only


 / Published in: PHP
 

URL: http://wptricks.net/how-to-display-content-for-admin-only/

  1. <?php global $user_ID; if( $user_ID ) : ?>
  2. <?php if( current_user_can('level_10') ) : ?>
  3. <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?>
  4. <?php endif; ?>
  5. <?php endif; ?>

Report this snippet  

You need to login to post a comment.