[Resolved] Notification is created but can’t list it for the user
-
Hello,
I have a really weird issue with Buddypresss, I can create notifications but they’re not received by the user… Every components are enabled btw.
If I do :
bp_notifications_add_notification( array( 'user_id' => get_current_user_id(), 'item_id' => 630, 'secondary_item_id' => 1080, 'component_name' => 'my_app', 'component_action' => 'my_app_action', 'date_notified' => bp_core_current_time(), 'is_new' => 1, ) );
Where 630 and 1080 are valid WordPress posts and my_app component has been registered sooner.
If I check my database, that’ll create a new entry as expected and I do :
bp_notifications_get_notification(306)
(306 is my new notification’s id) It does return the notification object.
However, if I do :
bp_notifications_get_notifications_for_user(3)
(3 is the current_user_id())
Then it returns false and bp_notifications_get_all_notifications_for_user() an empty array.
What am I missing ?
Thanks for the help, please let me know if you need more details.
Cheers,
François
- The topic ‘[Resolved] Notification is created but can’t list it for the user’ is closed to new replies.