BBP_BuddyPress_Activity::activity_get_notification_permalink( $link,  $item_id,  $secondary_item_id,  $total_items )

– Generate permalink for reply and topic mention notification.

Description

Parameters

$link

(Required)

$item_id

(Required)

$secondary_item_id

(Required)

$total_items

(Required)

Return

(string)

Source

File: bp-forums/activity.php

371
372
373
374
375
376
377
378
function activity_get_notification_permalink( $link, $item_id, $secondary_item_id, $total_items ) {
 
    remove_filter( 'bp_activity_get_permalink', array( $this, 'activity_get_permalink' ), 10, 2 );
    $link = bp_activity_get_permalink( $item_id );
    add_filter( 'bp_activity_get_permalink', array( $this, 'activity_get_permalink' ), 10, 2 );
 
    return $link;
}

Changelog

Changelog
Version Description
BuddyBoss 1.2.5 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.