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

Reply To: Remove Peepso Label From user Name in Search Suggestions/Results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Remove Peepso Label From user Name in Search Suggestions/Results Reply To: Remove Peepso Label From user Name in Search Suggestions/Results

#24107
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

Looks like those are some sort of unfiltered mentions. I guess the only way to fix them is by using a custom code. Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!

add_filter('asp_results', 'asp_remove_peepso_mentions', 10, 1);
function asp_remove_peepso_mentions($results) {
  foreach ( $results as $k => &$r ) {
    $r->title = preg_replace('/@peepso_user_[0-9]{1,5}\((.*?)\).*?/i', '$1', $r->title);
    $r->content = preg_replace('/@peepso_user_[0-9]{1,5}\((.*?)\).*?/i', '$1', $r->content);
  }
}

Please be careful, I have not been able to test this code yet.

As for the images, unfortunately there is no way of getting those at them moment, I am sorry.