Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created March 1, 2012 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancameron/1953946 to your computer and use it in GitHub Desktop.
Save dancameron/1953946 to your computer and use it in GitHub Desktop.
GBS: Preserve GET/Tracking Variables from the Homepage Redirect
add_filter('gb_latest_deal_redirect', 'filter_homepage_redirect');
function filter_homepage_redirect() {
$url = gb_get_latest_deal_link();
if ( isset($_GET) ) {
$url = add_query_arg( $_GET ,$url );
}
return $url;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment