Notifications
Clear all

Email Notification only for specific user role

3 Posts
2 Users
0 Reactions
890 Views
Posts: 4
Customer
Topic starter
(@tomasz-brzozowski)
Member
Joined: 3 years ago

I have a user role paid_user

Is there way to use this (or any other) hook

https://wpdiscuz.com/docs/codex/actions/wpdiscuz_before_sending_emails/

To filter emails to be sent only for users with a user role paid_user

Thanks!

2 Replies
Astghik
Posts: 6198
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

Hi Tomasz Brzozowski,

You can use the wpdiscuz_email_notification hook for this purpose: 

https://wpdiscuz.com/docs/codex/filters/wpdiscuz_email_notification/

Please note all questions related to the free wpDiscuz plugin should be asked in the wpDiscuz.com forum. Here we only support issues related to paid addons.

Reply
Posts: 4
Customer
Topic starter
(@tomasz-brzozowski)
Member
Joined: 3 years ago

Can I ask you about how the function for our usecase would look like? Sorry our PHp coding skills are... well there aren't any haha 🙂

Reply
Share:
Scroll to top