@nicmare
10 years, 5 months ago
did you read this example in the documentation? https://bbpress.trac.wordpress.org/browser/tags/2.5.3/includes/extend/buddypress/notifications.php
there is a function for that: bp_notifications_add_notification( $args )