Reply To: Need urgent help with BP notifications
Please use the code button when you publish code !
First, you can’t use a function name twice. (setup_globals)
Second, it’s more easier to do after reading the correct documentation:
And to find some answers once you have this information:
http://stackoverflow.com/questions/23148948/add-a-custom-notification-in-buddypress
The dev discussion around the new notification system:
https://buddypress.trac.wordpress.org/ticket/5148
And the appropriate filter bp_notifications_get_notifications_for_user which let non BP component hook into notification:
https://buddypress.trac.wordpress.org/changeset/7578