WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hiden theme switcher from readers (2 posts)

  1. Tri-Fusion
    Member
    Posted 7 years ago #

    Is it possible to show theme switcher for admin only? Admin must login in order to see drop down theme switcher.

    Thanks

  2. Glenn Ansley
    Member
    Posted 7 years ago #

    There may be a better way to do it, but see if this works:

    <?php global $userdata;
    get_currentuserinfo();
    if ($userdata->user_level == 10) { ?>
    
    Theme switcher template tag goes here
    
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic