bp_document_activity_entry ()
获取要在前端呈现的活动输入文档
描述
源
文件:bp-document / bp-document-filters.php
函数bp_document_activity_entry() {$document_ids = bp_activity_get_meta(bp_get_activity_id(), 'bp_document_ids', true);//将文档添加到单个活动页面。$document_activity = bp_activity_get_meta(bp_get_activity_id(), 'bp_document_activity', true);If (bp_is_single_activity() && !$document_ids = BP_Document::get_activity_document_id(bp_get_activity_id());} if (!bp_has_document(array('include' => $document_ids, 'order_by' => 'menu_order', 'sort' => 'ASC',)) {?PHP bp_get_template_part('document/activity-document-move');While (bp_document()) {bp_the_document();bp_get_template_part(“文档/ activity-entry”);} ?>