bp_document_activity_comment_entry( $comment_id )
Get activity comment entry document to render on front end.
Description
Parameters
- $comment_id
-
(Required)
Source
File: bp-document/bp-document-filters.php
function bp_document_activity_comment_entry( $comment_id ) { $document_ids = bp_activity_get_meta( $comment_id, 'bp_document_ids', true ); if ( ! empty( $document_ids ) && bp_has_document( array( 'include' => $document_ids, 'order_by' => 'menu_order', 'sort' => 'ASC', ) ) ) { ?> <div class="bb-activity-media-wrap bb-media-length-1 "> <?php bp_get_template_part( 'document/activity-document-move' ); while ( bp_document() ) { bp_the_document(); bp_get_template_part( 'document/activity-entry' ); } ?> </div> <?php } }
Changelog
Version | Description |
---|---|
BuddyBoss 1.4.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.