WordPress.org

Ready to get started?Download WordPress

Forums

Hide sidebar buttons from users (3 posts)

  1. foxycp
    Member
    Posted 6 years ago #

    Hi,
    I have made my own buttons for the sidebar which I am displaying with java script in a text box widget.
    I am using some code to hide certain buttons from users who are not logged in. This all works fine.
    ie.

    <?php if ( is_user_logged_in() ) : ?> 
    
    ~Hidden buttons in here~
    
    <?php endif; ?>

    I want to add more buttons but I need them to be hidden from subscribers as well.
    Any help with this would be greatly appreciated.

  2. foxycp
    Member
    Posted 6 years ago #

    I guess nobody can help with this issue.

  3. foxycp
    Member
    Posted 6 years ago #

    You guys are so helpful thank you so much.......

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags