Reply To: URL Redirection

#9617
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi!

Thank you for your kind words!

I’m assuming you want to change the URL of the results to include the “?support” query as well. There is no option for that unfortunately, but it’s possible to do it with a custom hook:

Put this code to the functions.php file in your active theme directory:

add_filter( 'asp_results', 'asp_add_support_query', 1, 1 );
 
function asp_add_support_query( $results ) {
  foreach ($results as $k=>$v) {
    // Modify the results URL
    $results[$k]->link  .= "?support";
  }
  return $results;
}

That should hopefully do the trick.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)