Skip to:
Content
Pages
Categories
Search
Top
Bottom

Who’s online only for logged in users

  • @jborghoff

    Participant

    Is it possible to only show the Who’s Online widget to users that have logged in and online?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @vapvarun

    Participant

    @jborghoff

    Participant

    @vapvarum, thanks for the response. I don’t think this will work for me. My goal is to only show (make visible) to users the BuddyPress (Who’s Online) widget who are logged in.

    @shanebp

    Moderator

    The online widget does not have that option.
    Possible solutions are:
    1. Put the widget on a page that requires the viewer to be logged in.
    2. Do a little programming – create a copy of that widget and change the name and add a condition at the very beginning of the widget. For example:

    if ( ! is_user_logged_in() ) 
       return;

    @vapvarun

    Participant

    @jborghoff. you can use https://wordpress.org/plugins/widget-logic/ and it will allow adding conditional logic

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar