Trying to override the search query doesn't have any effect

前端 未结 0 1398
北海茫月
北海茫月 2020-12-03 03:27

I have shortened my code example to:

function custom_product_search($query)
{
    $query->set("category__in", [36]);
    return $query;
}
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题