Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/09/2021 10:00:02 AM (3 years ago)
Author:
imath
Message:

Notifications: improve Action URLs management & customization

  • Use bp_get_notifications_unread_permalink() and bp_get_notifications_read_permalink() to set the Notifications screens/actions redirections instead of rebuilding the redirection URLs from scratch. This lets Advanced users customize the redirection links if needed.
  • Add 2 missing variables to the bp_groups_multiple_membership_request_rejected_notification dynamic filter.
  • Edit the name of the filter used by the bp_get_notifications_read_permalink() function to be more consistent with the name of the function.

Fixes #8543

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-notifications.php

    r12893 r13034  
    615615                     * @param string $notification_link The permalink for notification.
    616616                     */
    617                     return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $group->name );
     617                    return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $group->name, $text, $notification_link );
    618618                } else {
    619619
Note: See TracChangeset for help on using the changeset viewer.