• Hi,

    If I want to show a message or add to a plugin a way that only admins can see that message/text, what should I do?
    I am looking for just a simple example.

    Rui

Viewing 1 replies (of 1 total)
  • You’re talking about in your theme, not the admin screens, right?

    <?php if (current_user_can('level_10')){ ?>
    <!-- html that only admins will see -->
    <?php } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Add something that only admins can see’ is closed to new replies.