Created
March 1, 2012 23:14
-
-
Save dancameron/1953946 to your computer and use it in GitHub Desktop.
GBS: Preserve GET/Tracking Variables from the Homepage Redirect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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