woodmart_ajax_search_args
-
With woodmart_ajax_search_args is it possible to manipulate search keyword (for example to remove specific characters) ?
Thanks
This is not working
add_filter(‘woodmart_ajax_search_args’, ‘replace_hyphens_in_ajax_search_query’);
function replace_hyphens_in_ajax_search_query($args) {
if (isset($args[‘s’])) {
$args[‘s’] = str_replace(‘-‘, ”, $args[‘s’]);
}
return $args;
}
Hi george-8041,
Thanks for reaching to us.
First of all, I’m really sorry have taken long time to reply you due to the weekend.
Sorry, but your question is a bit unclear to me. Please describe in more details, this will allow me to thoroughly investigate and address your concerns in a more efficient.
Regards,