# Integrate Discourse with MemberMouse

**URL:** https://meta.discourse.org/t/integrate-discourse-with-membermouse/79636
**Category:** Administrators
**Tags:** wordpress, how-to
**Created:** [February 2, 2018, 3:10pm UTC](https://meta.discourse.org/t/integrate-discourse-with-membermouse/79636 "2018-02-02T15:10:00Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![lkramer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lkramer/32/83897_2.png) [@lkramer](https://meta.discourse.org/u/lkramer)
#### Post date: [February 7, 2018, 4:26pm UTC](https://meta.discourse.org/t/integrate-discourse-with-membermouse/79636/6 "2018-02-07T16:26:44Z")

</div>

In order to rely on bundles rather than membership levels – anywhere I mentioned membership status/level, you’d just check the person’s bundle status via a MemberMouse php function. So check whether they have bundle X and whether it’s currently ‘active’ and if so, put them in Discourse group X or else remove them from group X. I believe the MemberMouse php function you want is something like this:

```
if ( mm_member_decision(array("hasBundle"=>"1")) )

```

Now, regarding only making certain Discourse categories accessible to certain Discourse groups, I’ve never tried it but according to this thread here you can restrict categories to certain groups:

> [@Is it possible to restrict categories to specific groups of vetted users?](https://meta.discourse.org/t/is-it-possible-to-restrict-categories-to-specific-groups-of-vetted-users/30249):
>
> Hello! I would like to use discourse to build a community for information security professionals and novices. Some of this would involve sharing sensitive information, but only with users that have been vetted, and can be trusted, Is there any way to restrict categories to specific users. Apologies if this question has been asked before. I searched, but could not find anything.

So as long as you can successfully set/unset a person’s Discourse group based on their bundle (which should be do-able), then you can achieve your goal of only having access to certain categories.

---

_[View the full topic](https://meta.discourse.org/t/integrate-discourse-with-membermouse/79636)._
