Support » Plugins » Hide Widgets when not logged in

  • Resolved DustyGhost


    Hello there,

    On my sidebar I have the Recent Posts widget.

    But I only want this to show if the user is logged in.

    Anyone know how to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just found the Widget Logic plug-in!

    Works like a charm when you add is_user_logged_in() to the php code on the widget!

    Another way to hardcode that in the functions.php ?

    I would like to avoid to install another plugin; I just want to hide a specific widget if the user is logged. I don’t need more control than that.

    How could I do it ? Is there a filter or action ?


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Widgets when not logged in’ is closed to new replies.