WordPress.org

Support

Support » How-To and Troubleshooting » Hide sidebar buttons from users

Hide sidebar buttons from users

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide sidebar buttons from users’ is closed to new replies.