BP_Search_CPT:: print_search_options (items_to_search美元)
应该搜索什么分类?
描述
使用post类型打印搜索所有注册分类法的选项,例如$this->cpt_name
源
文件:bp-search /插件/ search-cpt / class-bp-search-cpt.php
Public function print_search_options($items_to_search) {echo "";$cpt_taxonomy = get_object_taxonomies($this->cpt_name);Foreach ($cpt_taxonomy as $tax) {$label = ucwords(str_replace('_', ' ', $tax));美元价值= $ this - > search_type。税收——“美元税收;$checked = !empty($items_to_search) && in_array($value, $items_to_search) ?' checked': ";Echo "
";}回声”< / div > < !——.wp-user-fields >”;}问题吗?