Description
Filters the base URL of the affiliate’s referral URL.
Parameters
$base_url
(string) The base URL on which the referral URL is built. Defaults to the value returned by WordPress’site_url()
function.
Example
The default referral URL shown in the affiliate’s account is built on top of the $base_url
. In certain situations, you may want to change this URL to something else. The following example shows you how you can do it:
function change_affiliate_url_base( $base_url ) {
return 'https://yourwebsite.com/';
}
add_filter( 'slicewp_affiliate_url_base', 'change_affiliate_url_base' );