Better format of template category in template search box

This commit is contained in:
Nedim Uka
2018-10-25 13:05:43 +02:00
parent ef020f57e5
commit a94afea151

View File

@@ -73,7 +73,7 @@ class Wiaas_Admin_Product_Additional_Info {
} else {
$template_category = wp_get_object_terms($product_form_search->get_id(), 'template_category', array('fields' => 'names'));
if(!empty($template_category)){
$search_results[$product_form_search->get_id()] = $search_results[$product_form_search->get_id()].'-'.$template_category[0];
$search_results[$product_form_search->get_id()] = $search_results[$product_form_search->get_id()].' ['.$template_category[0].']';
}
}
}