# Having a protected (Wordpress) page that only Discourse Users can access

**URL:** <https://meta.discourse.org/t/having-a-protected-wordpress-page-that-only-discourse-users-can-access/150311>\
**Category:** WordPress\
**Created:** [May 4, 2020, 11:15am UTC](https://meta.discourse.org/t/having-a-protected-wordpress-page-that-only-discourse-users-can-access/150311 "2020-05-04T11:15:30Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [May 9, 2020, 3:04pm UTC](https://meta.discourse.org/t/having-a-protected-wordpress-page-that-only-discourse-users-can-access/150311/14 "2020-05-09T15:04:58Z")

</div>

> [@Michael\_SC](#):
>
> Does this look like something that is technically feasable in an elegant way to accomplish?

If Facebook will allow you to access a user’s group membership status, the first project should be possible. You’ll need to assign users to the Discourse group through the Discourse API. The API calls could be made from your WordPress site. Group memberships could also be assigned with a Discourse plugin, but that plugin would not be able to be installed on our hosting.

The second project could be accomplished by customizing the [WP Discourse](https://github.com/discourse/wp-discourse) `publish_format_html` template so that it handles your Facebook feed page differently than it handles other posts that are published to Discourse from your site.

---

_[View the full topic](https://meta.discourse.org/t/having-a-protected-wordpress-page-that-only-discourse-users-can-access/150311)._
