Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Bryan Phelan
Bryan Phelan
18,191 Points

WordPress SSO

I work for a company who has multiple products across different sites. Therefore requiring different logins for each site. One example is an online store and a forum. Is there a way in WordPress to allow one login to access the forum and the store? The site is not currently built using WordPress but if this is possible we may switch.

Thanks!

2 Answers

Josh Miclette
PLUS
Josh Miclette
Courses Plus Student 6,227 Points

Hey Bryan - If I am reading your comment correctly, you are referring to the user roles in WordPress. Out of the box, WP has five user roles: Administrator, Editor, Author, Contributor, Subscriber. Each role has access to certain areas of the back-end. The Administrator has full access, while an Author has limited access. There may be a plugin out there that allows you to be more specific to which pages a user has access to. I came across this article which may be helpful:

http://www.wpbeginner.com/beginners-guide/wordpress-user-roles-and-permissions/

I hope this helps!

Josh

Bryan Phelan
Bryan Phelan
18,191 Points

Josh,

Thank you for the insight. I know about the default user roles and those just weren't quite what I was looking for. I think the plugin mentioned in that article is worth taking a look at. As I was looking into this last night I found a workaround. With WooCommerce installed I can use that as a registration/login portal, when a user registers on WooCommerce there is a new user group created named customers. I can then restrict access to the forum to logged in users only. Along with those two things I also installed Nav Menu Roles which lets you customize visibility of menu items based on user role. So, that lets me keep a user database (through WooCommerce), allows me to restrict the forum access to logged in users (users of customer group), and also hide/show links throughout my site to specific user groups.