bp_activity_current_comment()
Utility function that returns the comment currently being recursed.
Description
Return
(object|bool) $current_comment The activity comment currently being displayed. False on failure.
Source
File: bp-activity/bp-activity-template.php
function bp_activity_current_comment() {
global $activities_template;
$current_comment = !empty( $activities_template->activity->current_comment )
? $activities_template->activity->current_comment
: false;
/**
* Filters the current comment being recursed.
*
* @since BuddyPress 1.5.0
*
* @param object|bool $current_comment The activity comment currently being displayed. False on failure.
*/
return apply_filters( 'bp_activity_current_comment', $current_comment );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.5.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.