- March 23, 2017 at 8:45 am #12421
I need to remove some characters written by the users before the search.
and change in the search box.
Ex: 1234 567 to 1234567 or 1234.567 to 1234567
I can use
Add_action (‘asp_before_search’, ‘asp_change_phrase’, 10, 1);
Add_filter (‘asp_after_search’, 10, 1);?
ThanksMarch 23, 2017 at 2:26 pm #12432
I think this is what you are looking for: https://wp-dreams.com/knowledge-base/replace-or-remove-characters-from-search-phrase/
That code should be the base, but change the two variables to:
$characters = " ."; $replace_with = "";
So space and dot is replaced with empty string.Best,
If you like my products, don't forget to rate them on codecanyon :)
March 23, 2017 at 5:59 pm #12445
Everytihng work good Ernest!
One more thing,
It’s possible to put beside the related image of each category?
Thank you a lot.
You have created an excellent plugin.
Attachments:You must be logged in to view attached files.March 24, 2017 at 10:32 am #12451
You must be logged in to reply to this topic.