Better format of template category in template search box
This commit is contained in:
@@ -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].']';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user