SliceWP includes a number of useful shortcodes that will help you customize your affiliate program’s experience.
Below you can find all the available shortcodes, their usage, and customization options.
If you’re not sure what shortcodes are and how they work in your WordPress site, please click here to learn more.
Outputs the affiliate registration form, where visitors of your website can register to your affiliate program.
You can find more information about the affiliate registration form and how you can customize it by clicking this link.
Outputs the affiliate login form, which your affiliates can use to log into their account.
You can find more information about the affiliate login form by clicking this link.
Outputs the main affiliate area/dashboard, where your affiliates can log in to grab their referral link and to view their overall performance.
You can find more information about the affiliate dashboard by clicking this link.
Outputs a form where your affiliates can reset their account’s password.
You can find more information about the affiliate reset password form by clicking this link.
Outputs the unique ID of the currently logged-in affiliate.
By default, this shortcode outputs the currently logged-in affiliate’s referral link. However, you can modify the output based on the attributes you provide.
- affiliate_id (int)(optional) An affiliate’s unique ID. If you provide an affiliate’s ID, the shortcode will output the referral link of the affiliate you provided, instead of the affiliate that is logged-in.
- url (string)(optional) A link from your website. If you provide a link from your website, for example to a certain product or page, the outputted referral link will be for the given website link.
// Outputs the default referral link for the currently logged-in affiliate. [slicewp_affiliate_url] // Transforms the given URL into a referral link for the currently logged-in affiliate. [slicewp_affiliate_url url="https://yourwebsite.com/awesome-product/"] // Outputs the default referral link of the affiliate with ID 21. [slicewp_affiliate_url affiliate_id="21"] // Transforms the given URL into a referral link for affiliate with ID 21 and outputs it. [slicewp_affiliate_url affiliate_id="21" url="https://yourwebsite.com/awesome-product/"]
Outputs a given creative.
id(int)(required) The ID of the creative you wish to output.
// Outputs the HTML for the creative with ID 21. [slicewp_creative id="21"]