# Can I activate my plugin only for those registered on the site?

**URL:** <https://meta.discourse.org/t/can-i-activate-my-plugin-only-for-those-registered-on-the-site/115857>\
**Category:** Product Support\
**Created:** [24.Апрель.2019 13:48:23 UTC](https://meta.discourse.org/t/can-i-activate-my-plugin-only-for-those-registered-on-the-site/115857 "2019-04-24T13:48:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [24.Апрель.2019 14:21:15 UTC](https://meta.discourse.org/t/can-i-activate-my-plugin-only-for-those-registered-on-the-site/115857/6 "2019-04-24T14:21:15Z")

</div>

> [@eextra](#):
>
> What if I want to write my own plugin that only activates for anonymous users? Is it enough for me to have a css class or something else?

```plaintext
currentUser

```

You may need it in the plugin.

> **[Build software better, together](https://github.com/search?q=repo%3Adiscourse%2Fdiscourse+currentUser)**
>
> GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.

---

_[View the full topic](https://meta.discourse.org/t/can-i-activate-my-plugin-only-for-those-registered-on-the-site/115857)._
