Custom Affiliate URL

By default, the URL is filled in with whatever you have configured as your “Shop Page” inside WooCommerce settings.

There is a hook available to change the landing URL to something other than the Shop page. Follow these instructions:

1. Download the free Code Snippets plugin:
2. Create a Snippet with the following code (or you can put this in your functions.php if you prefer):

function custom_pw_affiliates_shop_page_url( $url ) {
    // Change this to suit your needs:
    return '';
add_filter( 'pw_affiliates_shop_page_url', 'custom_pw_affiliates_shop_page_url' );


Skip to content