bp_get_activity_comment_link()

Return the activity comment link.

Description

Return

(string) The activity comment link.

Source

File: bp-activity/bp-activity-template.php

2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
function bp_get_activity_comment_link() {
    global $activities_template;
 
    /**
     * Filters the comment link for the current activity comment.
     *
     * @since BuddyPress 1.2.0
     *
     * @param string $value Constructed URL parameters with activity IDs.
     */
    return apply_filters( 'bp_get_activity_comment_link', '?ac=' . $activities_template->activity->id . '/#ac-form-' . $activities_template->activity->id );
}

Changelog

Changelog
Version Description
BuddyPress 1.2.0 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.