Prevent plugin sending notifications to unregistered users
I’m testing a little plugin for web push notifications. Problem is I don’t want ANY user of the website to be presented with the prompt where the site asks the user to agree to receive notifications: I only want to send notifications to registered users. Is there any way (a filter, for example) to make a specific plugin work only for registered users?
Any help is appreciated