# Creating a gender limited forum?

**URL:** https://meta.discourse.org/t/creating-a-gender-limited-forum/76192
**Category:** Support
**Created:** [16 Diciembre, 2017 02:57 UTC](https://meta.discourse.org/t/creating-a-gender-limited-forum/76192 "2017-12-16T02:57:11Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [16 Diciembre, 2017 05:54 UTC](https://meta.discourse.org/t/creating-a-gender-limited-forum/76192/2 "2017-12-16T05:54:31Z")

</div>

You can find resources related to the plugin development here in [Search results for '#howto plugin development' - Discourse Meta](https://meta.discourse.org/search?q=%23howto%20plugin%20development)

> [@ericskiff](#):
>
> what plugins can and cant do?

In Discourse a plugin can do almost anything ✨

Since you are only allowing signups from Facebook it is easier to implement this feature. We already saving gender value in `facebook_user_infos` table. Similar code like below can work for you _(not yet tested)_

```ruby
after_initialize do

  FacebookUserInfo.class_eval do

    after_commit : add_to_gender_group, on: :create

    def add_to_gender_group
      return if gender.blank?

      group = Group.find_by name: gender.downcase
      group.add user
    end

  end

end

```

And you can limit all your categories only for “female” group.

---

_[View the full topic](https://meta.discourse.org/t/creating-a-gender-limited-forum/76192)._
