bp_get_activity_comment_id()

Return the ID of the activity comment currently being displayed.


Description Description


Return Return

(int|bool) $comment_id The ID of the activity comment currently being displayed, false if none is found.


Top ↑

Source Source

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

	function bp_get_activity_comment_id() {
		global $activities_template;

		$comment_id = isset( $activities_template->activity->current_comment->id ) ? $activities_template->activity->current_comment->id : false;

		/**
		 * Filters the ID of the activity comment currently being displayed.
		 *
		 * @since 1.5.0
		 *
		 * @param int|bool $comment_id ID for the comment currently being displayed.
		 */
		return apply_filters( 'bp_activity_comment_id', $comment_id );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.