Bp_Search_Documents:: generate_html (template_type美元''

描述

文件:bp-search /类/ class-bp-search-documents.php

$template_type = ") {$document_ids = array();Foreach ($this->search_results['items'] as $item_id => $item_html) {$document_ids[] = $item_id;} //现在我们有所有的posts //让我们做一个文档循环$args = array('include' => implode(',', $document_ids), 'per_page' => count($document_ids), 'search_terms' => false,);do_action(“bp_before_search_documents_html”);If (bp_has_document($args)) {while (bp_document()): bp_the_document();$result = array('id' => bp_get_document_id(), 'type' => $this->type, 'title' => bp_get_document_title(), 'html' => bp_search_buffer_template_part('loop/document', $template_type, false),);$this->search_results['items'][bp_get_document_id()] = $result;endwhile;} do_action('bp_after_search_documents_html');}

问题吗?

我们总是很乐意帮助您解决代码或其他问题!搜索我们的开发人员文档联络支持,或与我们联系销售团队