Refactored template product feature
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user