admin管理员组文章数量:1130349
I'm having some trouble trying to make an area on my WordPress site, that must be accessible only to members of my Google Group. I tried to make it with some plugin, but most of them would take me to have to ask the users to register themselves in the website, and that would not include a validator to see if he is a member of the Google group.
So, my point is: Is there any way to make a area of my website themselves accessible only by members of a Google Group? If so, how could I do that?
I'm having some trouble trying to make an area on my WordPress site, that must be accessible only to members of my Google Group. I tried to make it with some plugin, but most of them would take me to have to ask the users to register themselves in the website, and that would not include a validator to see if he is a member of the Google group.
So, my point is: Is there any way to make a area of my website themselves accessible only by members of a Google Group? If so, how could I do that?
Share Improve this question edited Jun 16, 2016 at 16:35 Pat J 12.5k2 gold badges29 silver badges36 bronze badges asked Jun 16, 2016 at 15:40 Pedro Luiz SantosPedro Luiz Santos 134 bronze badges1 Answer
Reset to default 0Most of your question is off topic, I guess, because it involves a question about Google's APIs. You would need three things:
- Create the possibility to login to your site with a Google account. There are plugins that make this possible, like this one.
- Import the list of group members from Google. There probably is an API for this, but that is out of the scope of this site. Once you have an array of users an mailaddresses, you can use
wp_create_userto make new entries in your user table. You would have to set a transient for this, to prevent looking for new group members at Google with every pageload. Also, you should create a special user role for group members. - Finally, in your templates you can add a check for users that are logged in with that special role to display exclusive information.
I'm having some trouble trying to make an area on my WordPress site, that must be accessible only to members of my Google Group. I tried to make it with some plugin, but most of them would take me to have to ask the users to register themselves in the website, and that would not include a validator to see if he is a member of the Google group.
So, my point is: Is there any way to make a area of my website themselves accessible only by members of a Google Group? If so, how could I do that?
I'm having some trouble trying to make an area on my WordPress site, that must be accessible only to members of my Google Group. I tried to make it with some plugin, but most of them would take me to have to ask the users to register themselves in the website, and that would not include a validator to see if he is a member of the Google group.
So, my point is: Is there any way to make a area of my website themselves accessible only by members of a Google Group? If so, how could I do that?
Share Improve this question edited Jun 16, 2016 at 16:35 Pat J 12.5k2 gold badges29 silver badges36 bronze badges asked Jun 16, 2016 at 15:40 Pedro Luiz SantosPedro Luiz Santos 134 bronze badges1 Answer
Reset to default 0Most of your question is off topic, I guess, because it involves a question about Google's APIs. You would need three things:
- Create the possibility to login to your site with a Google account. There are plugins that make this possible, like this one.
- Import the list of group members from Google. There probably is an API for this, but that is out of the scope of this site. Once you have an array of users an mailaddresses, you can use
wp_create_userto make new entries in your user table. You would have to set a transient for this, to prevent looking for new group members at Google with every pageload. Also, you should create a special user role for group members. - Finally, in your templates you can add a check for users that are logged in with that special role to display exclusive information.
本文标签: pluginsWordpress Integration with Google Groups
版权声明:本文标题:plugins - Wordpress Integration with Google Groups 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749144008a2322686.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论