# 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:** [April 24, 2019, 1:48pm 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:** 1

<div class="post-metadata">

**Author:** ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)\
**Post date:** [April 24, 2019, 1:48pm UTC](https://meta.discourse.org/t/can-i-activate-my-plugin-only-for-those-registered-on-the-site/115857/1 "2019-04-24T13:48:23Z")

</div>

I would like to display the number of logged users (users online plugin) on the site only for logged users (my all members from trust 0-4).  
But I don’t know how to disable this plugin on the site for guest ?

Why is there no such thing as a user group or trust level (-1 ? ) for not registered - not logged in/guest users?  
How can I put it in the code?

---

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