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

166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
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

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.