Created
May 23, 2025 07:25
-
-
Save sabhari-krr/51e7efcaaa733443f1852d803cd010f7 to your computer and use it in GitHub Desktop.
Fetch Site Address (URL) instead of WordPress Address (URL)
This file contains hidden or 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('wlr_get_referral_url', function( $url, $code ){ | |
if(empty($code)){ | |
return $url; | |
} | |
return add_query_arg('wlr_ref', $code, home_url()); | |
}, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment