This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: How to change the default search bar value? #38002
    leroileleroile
    Participant

    Ok I have found how to do it on my own.

    For people interested, to change the default value of the search bar, it is the following code:

    add_filter(“asp_print_search_query”, “asp_change_print_search_query”, 10, 2);
    function asp_change_print_search_query($query, $search_id) {
    // Edit query (string that is the default value)
    return $query;
    }

    in reply to: I need to access the current page URL #37974
    leroileleroile
    Participant

    That’s very clever, thank you 👍

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