WPIntell

Source evidence

Change Referral Link

YITH WooCommerce Affiliates ยท support ยท 2025-11-21T09:59:00+00:00

questionsentiment
lowseverity
0.25relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 31 rows with source links

16.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
cshijacked resolved
Hello, i think i only have a smaller issue. How to change the referral Link ? This is shown: https://my-website.com?ref=1 But i want to change the url like this: https://my-website/ shop/ ?ref=1 Please tell me how to do ๐Ÿ™‚ Tank You Hi there, thanks for contacting us! To achieve what you need please add the following code in the functions.php file of your active theme: if (! function_exists('yith_wcaf_shop_referral_url')) { function yith_wcaf_shop_referral_url($referral_url, $ref_name, $token, $base_url) { if (home_url() == $base_url) { $referral_url = add_query_arg($ref_name, $token, get_permalink(get_page_by_path('shop'))); } return $referral_url; } add_filter('yith_wcaf_get_referral_url', 'yith_wcaf_shop_referral_url', 10, 4); } Could you check it, please? Best regards. Hey, thanks a lot. It works ๐Ÿ™‚ greetings from germany โ€“ Chris

Comments

2 shown
Juan Coronel 2025-11-26T14:47:00+00:00

Hi there, thanks for contacting us! To achieve what you need please add the following code in the functions.php file of your active theme: if (! function_exists('yith_wcaf_shop_referral_url')) { function yith_wcaf_shop_referral_url($referral_url, $ref_name, $token, $base_url) { if (home_url() == $base_url) { $referral_url = add_query_arg($ref_name, $token, get_permalink(get_page_by_path('shop'))); } return $referral_url; } add_filter('yith_wcaf_get_referral_url', 'yith_wcaf_shop_referral_url', 10, 4); } Could you check it, please? Best regards.

cshijacked 2025-11-27T10:13:00+00:00

Hey, thanks a lot. It works ๐Ÿ™‚ greetings from germany โ€“ Chris