Refactored template product feature

This commit is contained in:
Nedim Uka
2018-09-27 15:08:21 +02:00
parent 21d96a0e55
commit 93d03a96ee
4 changed files with 119 additions and 93 deletions

View File

@@ -74,9 +74,11 @@ class Wiaas_Template_Admin_Ajax {
*/
public static function ajax_wiaas_template_category_search() {
$term = ($_POST['term']);
$term = wp_unslash($_GET['term']);
$response = array();
error_log('This is term');
error_log($term);
$terms = get_terms(array(
'taxonomy' => 'template_category',
'name__like' => $term