Primary

Affiliates By Username

Usernames in Affiliate Links

This WordPress plugin is an extension to the Affiliates plugins and allows affiliate links to indicate usernames in addition to the affiliate IDs used normally.

The plugin provides the [affiliates_by_username] shortcode that converts affiliate links by substituting the affiliate ID with the username.

To obtain the plugin please visit the shop page Affiliates by Username.

Installation

Go to Plugins > Add New > Upload and upload the plugin file. Activate the plugin – make sure that the requirements are met, see below.

Usage

Simply install and activate the plugin. Any affiliate account with an associated user can now use affiliate links that indicate the username instead of the affiliate ID.

Use the [affiliates_by_username] shortcode to wrap affiliate links that should provide the username instead of the affiliate ID.

Examples

Assuming the user billy has an affiliate account on the site, billy‘s affiliate links normally indicate the affiliate ID, for example http://www.example.com/?affiliates=123. With the plugin enabled, the username can be indicated instead:

  • http://www.example.com/?affiliates=billy
  • http://www.example.com/some-page/?affiliates=billy

Shortcode usage

To render affiliate links based on the username, wrap the shortcodes as shown in these examples:

[affiliates_by_username][affiliates_url][/affiliates_by_username]

[affiliates_by_username][affiliates_affiliate_link][/affiliates_by_username]

Notes

In case there is more than one affiliate entry associated to the username, the first entry is taken into account.