Search phrase validation Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search phrase validation This topic has 3 replies, 2 voices, and was last updated 9 years, 2 months ago by Ernest Marcinko. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts March 23, 2017 at 8:45 am #12421 fespigadoParticipant Hi Ernest, 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); str_replace… OR Add_filter (‘asp_after_search’, 10, 1);? str_replace… Thanks March 23, 2017 at 2:26 pm #12432 Ernest MarcinkoKeymaster Hi! 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: [php]$characters = " ."; $replace_with = ""; [/php] So space and dot is replaced with empty string. March 23, 2017 at 5:59 pm #12445 fespigadoParticipant 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. March 24, 2017 at 10:32 am #12451 Ernest MarcinkoKeymaster You are very welcome, and thank you for your kind words! Unfortunately that is not possible, I’m sorry. Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In