Display Specific Content for Admin Only


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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; ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.