Skip to:
Content
Pages
Categories
Search
Top
Bottom

Do not group notifications (bp_notifications_get_notifications_for_user())


  • patrick321
    Participant

    @patrick321

    Hello.

    Is it possible to disable notification grouping (by action) in “bp_notifications_get_notifications_for_user()” function?

    If yes, how? If no, are there any alternatives?

    Thank you, regards.

Viewing 2 replies - 1 through 2 (of 2 total)

  • Josh
    Participant

    @josh401

    I am also looking for this functionality. From what I can tell; the “bp_notifications_get_notifications_for_user()” function is calling the “bp_notifications_get_grouped_notifications_for_user()” function in the second line.

    There is no flag; or function parameter, to prevent this call to the grouping.

    Anyone out there with any experience on this matter?


    shanebp
    Moderator

    @shanebp

    You’re right, there is no flag etc.
    But having a ‘prevent’ flag on the call would not work, because the actual fetch is performed in the same function that does the grouping.
    See get_grouped_notifications_for_user in bp-notifications\classes\class-bp-notifications-notification.php

    So a flag that skips the $group_sql in that function would be useful.

    You can open an enhancement ticket here. Reference this thread. Even better if you can attach a patch.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar