bp_search_activities :: generate_html($ template_type.='')
描述
来源
文件:bp-search / classes / class-bp-search-activity.php
受保护功能生成_html($ template_type =''){$ post_ids_arr = array();foreach($ this-> search_results ['项目'] AS $ item_id => $ item_html){$ post_ids_arr [] = $ item_id;$ post_ids = moplode(',',$ post_ids_arr);do_action('bp_before_search_actity_html');if(bp_has_activities(array(''include'=> $ post_ids,'per_page'=> count($ post_ids_arr))))){whis(bp_activities()){bp_the_actity();$结果=数组('id'=> bp_get_actity_id(),'type'=> $ this-> type,'title'=> $ this-> search_term,'html'=> bp_search_buffer_template_part('循环/活动',$template_type,false),);$以下 - > search_results ['项目'] [bp_get_acticity_id()] = $结果;do_action('bp_after_search_actity_html');}