Home Forums WoodMart support forum woodmart_ajax_search_args

woodmart_ajax_search_args

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #584450

    george-8041
    Participant

    With woodmart_ajax_search_args is it possible to manipulate search keyword (for example to remove specific characters) ?

    Thanks

    #584456

    george-8041
    Participant

    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;
    }

    #584603

    Hung Pham
    Participant

    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,

Viewing 3 posts - 1 through 3 (of 3 total)