dageciDevClub member 3/15/2022 | |
Why don't you create your function where you pass to it your usergroup and this function in a loop add notifications to all the users in this group, or function for locations, pass location to this function and in this function add notifications to users. |
admin 3/15/2022 | |
We only have an option to notify a single user at the time. You will need to loop through the list of users and add a notification individually. |
D
|
druck281 3/22/2022 |
I actually ran into this same thing. I wanted to notify specific user groups. I figured out how to code it. This example notifies two different groups but you can write the WHERE statement however you want it. The 'if' statement skips the notification for the logged in user but you can omit that too if you want. Here is the link to the Facebook post...https://www.facebook.com/groups/121465711664/permalink/10159760327006665/ Good luck! $currentUser=$_SESSION["UserName"]; //Setting current user to variable for use in the comparison for the "if" statement |