Mark as read my custom notification
-
Hi !
I recently add a custom notification system for alert of new messages if you add a topic to your favorite.
For that I hook bp_notifications_get_registered_components, bp_notifications_get_notifications_for_user and bbp_new_reply.Everything work well but I have a last problem that I dont arrived to fixe : when I click on my new notifications they don’t disappear by her self. I use bbp_mark_read for generate my notification link but without sucess
$topic_link = wp_nonce_url(
add_query_arg(
array(
'action' => 'bbp_mark_read',
'topic_id' => $topic_id
),
bbp_get_reply_url( $item_id )
),
'bbp_mark_topic_' . $topic_id
);
Any solution for fix that ?
Thanks !
- You must be logged in to reply to this topic.