Note: This article relates to the free Affiliate Info add-on.


Download the free plugin

Install and activate the plugin just as you would with any other WordPress plugin

 

Note: This article relates to the free Affiliate Info add-on.

[affiliate_info_name]
Shows the affiliate’s display name

[affiliate_info_website]
Show the affiliate’s website URL

[affiliate_info_email]
Show the affiliate’s email address

[affiliate_info_gravatar]
Show the affiliate’s gravatar image

[affiliate_info_username]
Show the affiliate’s WordPress username

[affiliate_info_bio]
Show the affiliate’s biographical info (from their WordPress profile)

[affiliate_info_twitter]
Show the affiliate’s Twitter username. This field is shown on a user’s WordPress profile page when the Yoast SEO plugin is installed.

[affiliate_info_facebook]
Show the affiliate’s Facebook URL. This field is shown on a user’s WordPress profile page when the Yoast SEO plugin is installed.

[affiliate_info_googleplus]
Show the affiliate’s Google+ URL. This field is shown on a user’s WordPress profile page when the Yoast SEO plugin is installed.

[affiliate_info_referred]
Show content only when an affiliate is being tracked.

Example:
[affiliate_info_referred]Your site representative is [affiliate_info_name][/affiliate_info_referred]

[affiliate_info_not_referred]
Show content only when an affiliate is not being tracked. Useful for providing a fallback

 

Note: This article relates to the free Affiliate Info add-on..

<?php
$info = Arabianaffiliates_affiliate_info()->functions;
$name = $info->get_affiliate_name();
$email = $info->get_affiliate_email();
$website = $info->get_affiliate_website();
$bio = $info->get_affiliate_bio();
$gravatar = $info->get_affiliate_gravatar();
$twitter = $info->get_twitter_username();
$facebook = $info->get_facebook_url();
$googleplus = $info->get_googleplus_url();
$username = $info->get_affiliate_username();
// Example: Show the affiliate’s name
echo $name;
// Example: Only show a banner if an affiliate referred the user
if ( affiliatewp_affiliate_info()->functions->get_affiliate_id() ) {
echo ‘Your site representative is ‘ . $name;
}