Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
447 views
in Q2A Core by

Hey folks,

I'm looking for an option to hide content from non-logged in users.

I checked these topics:

It seems to me it was possible to achieve desired behavior programmatically only.

Is it the same situation now? Any additional UI config was introduced since then?

Q2A version: 1.8.3

1 Answer

0 votes
by

Possible duplicate of:
► How can I hide all info when users are not authenticated?
Is it possible to hide content for users who are not logged in?


I don't think there's a plugin for this yet. But you can hide content in a few different ways.

By going to: Admin > Permissions > Viewing question pages

Or wrapping the code you'd like to show only for logged-in users, with the following  if statement :

if (qa_is_logged_in()) {
    // YOUR CODE GOES HERE
}

...