Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show public - for registered users #44

Open
mortensams opened this issue Jun 13, 2019 · 2 comments
Open

Show public - for registered users #44

mortensams opened this issue Jun 13, 2019 · 2 comments

Comments

@mortensams
Copy link

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
Copy link

JeejD commented Jun 20, 2019

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

@mortensams
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants