mennolui / wp-foyer

Foyer - a free Digital Signage plugin for WordPress. Perfect for theaters, music venues, cinemas and festivals.
GNU General Public License v3.0
49 stars 22 forks source link

Show public - for registered users #44

Open mortensams opened 5 years ago

mortensams commented 5 years ago

Hi,

This looks like a very cool plugin. I have a question, though. Is there an option to only show content to registered users. I may have content for digital signage, that I would like to share over the internet - but not necessary for the whole world.

In the code I a couple of where is_user_logged_in() is used to determine if admin or public content is shown. I would like a role - say 'subscriber' - to be shown the public pages, so am still able to require authentication from the Digital Signage devices.

Can you give a pointer where to look, or maybe even add this possibility.

br, Morten

JeejD commented 5 years ago

Hi morten, I think the plugin User Roles Editor is what you're looking for. Try it out, this might work for you

mortensams commented 5 years ago

Thanks JeejD, User Role Editor is actually the one I am using. Trouble is, that I think that the logic in wp-foyer assumes, that if you are logged in - then you are not in the "public mode" - displaying the content.

I believe that showing content, while still being logged in is valuable. Maybe someone from the project can confirm my assumption?. br, Morten