Filters the base URL of the affiliate’s referral URL.


  • $base_url (string) The base URL on which the referral URL is built. Defaults to the value returned by WordPress’ site_url() function.


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 '';


add_filter( 'slicewp_affiliate_url_base', 'change_affiliate_url_base' );

Was this article helpful?

Do you have any feedback or suggestions to improve this page?

Can't find what you're looking for? We're here to help.

Contact us