I just trying to send a notification to user with text like “Hi” or “Your time has expired” or whatever else.
Buddypress API offer me to use this function
https://codex.buddypress.org/developer/function-examples/bp_notifications_add_notification/
but I don’t want to attach notification to any post.

I tried to go further and went through this post
http://opentuteplus.com/how-to-create-a-custom-buddypress-notifications-while-posting-a-new-post/

I created my component, but failed to make notification formatter work, because I don’t understand how I send totally custom text, like “Hi there!”, without some already existing post.

Could anyone help?

Read more here: Is there any way to send notification in Buddypress with custom text without adding it to some entity?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: