Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor pronskiy

    (@pronskiy)

    That should be possible using a hook. Let me check and I’ll come back to you with some solution soon.

    Plugin Contributor pronskiy

    (@pronskiy)

    Hi @mcfarnall,

    Your problem can be solved by adding the following snippet to your theme’s functions.php file:

    
    add_filter('searchexclude_filter_search', 'hide_for_not_logged_in', 10);
    function hide_for_not_logged_in($exclude)
    {
        return $exclude && !is_user_logged_in();
    }
    

    Please let me know how this worked for you.

    Cheers!
    Roman

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude for non-logged-in users only?’ is closed to new replies.