admin管理员组文章数量:1130349
Our site has a lot of members-only content, but we would like to allow our members to share certain content with non-members. Is there a way to generate sharable links that would allow non-members to access this restricted content?
Our site has a lot of members-only content, but we would like to allow our members to share certain content with non-members. Is there a way to generate sharable links that would allow non-members to access this restricted content?
Share Improve this question asked Jan 8, 2019 at 20:02 Matt PeabodyMatt Peabody 11 bronze badge 2- 1 I don't think you have provided enough info for anyone to accurately answer your question. How this members only content locked down? Assuming you are using a plugin for this? – RiddleMeThis Commented Jan 8, 2019 at 21:20
- @RiddleMeThis This content is locked down to our "users". When someone signs up, they are added to our users. No plugin is used. We can elect to "Make Public" certain pages, but then it's open to everyone. We're trying to keep everything private, but allow access with a sharable link. – Matt Peabody Commented Jan 9, 2019 at 13:07
1 Answer
Reset to default 0Can be done easily with a shortcode:
[members-only]...content...[/members-only]
The shortcode will return content for members, or text '<h3>This is for members only!</h3>', for non member request. The callback function of the shortcode will check who made a request, and return display data accordingly. Any other text on page/post will be displayed as is. For more info about shortcodes see: Shotcodes API
Our site has a lot of members-only content, but we would like to allow our members to share certain content with non-members. Is there a way to generate sharable links that would allow non-members to access this restricted content?
Our site has a lot of members-only content, but we would like to allow our members to share certain content with non-members. Is there a way to generate sharable links that would allow non-members to access this restricted content?
Share Improve this question asked Jan 8, 2019 at 20:02 Matt PeabodyMatt Peabody 11 bronze badge 2- 1 I don't think you have provided enough info for anyone to accurately answer your question. How this members only content locked down? Assuming you are using a plugin for this? – RiddleMeThis Commented Jan 8, 2019 at 21:20
- @RiddleMeThis This content is locked down to our "users". When someone signs up, they are added to our users. No plugin is used. We can elect to "Make Public" certain pages, but then it's open to everyone. We're trying to keep everything private, but allow access with a sharable link. – Matt Peabody Commented Jan 9, 2019 at 13:07
1 Answer
Reset to default 0Can be done easily with a shortcode:
[members-only]...content...[/members-only]
The shortcode will return content for members, or text '<h3>This is for members only!</h3>', for non member request. The callback function of the shortcode will check who made a request, and return display data accordingly. Any other text on page/post will be displayed as is. For more info about shortcodes see: Shotcodes API
本文标签: pluginsMembersonly pagebut accessible via sharable link
版权声明:本文标题:plugins - Members-only page, but accessible via sharable link 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749031006a2305676.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论