Ready to get started?Download WordPress


[resolved] Detect if user is logged in; Optionally display sidebar's content (3 posts)

  1. J_25
    Posted 5 years ago #


    Question 1:
    I'm using a dynamic sidebar and I'm trying to find a way of hiding some of the sidebar's content, such as links, and other widgets when I'm logged in.
    How can I do that?

    Question 2:
    Is there a way to detect if a user is logged in?

    Thank you in advance for any pointers :)

  2. asechrest
    Posted 5 years ago #

    Might check out Widget Logic and the is_user_logged_in() conditional.

    Though I'm honestly not sure if the plugin and that conditional work together.

  3. J_25
    Posted 5 years ago #

    you just made my day!

    Thank you, asechrest! :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.