bp_get_activity_comment_permalink()

Return the activity comment permalink.

Description

Return

(string) $link The activity comment permalink.

Source

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

	function bp_get_activity_comment_permalink() {
		global $activities_template;

		$link = bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity );

		// Used for filter below.
		$comment_id = isset( $activities_template->activity->current_comment->id )
			? $activities_template->activity->current_comment->id
			: 0;

		/**
		 * Filters the activity comment permalink.
		 *
		 * @since BuddyPress 1.8.0
		 *
		 * @param string $link       Activity comment permalink.
		 * @param int    $comment_id ID for the current activity comment.
		 */
		return apply_filters( 'bp_get_activity_comment_permalink', $link, $comment_id );
	}

Changelog

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