{"id":39768,"date":"2015-10-28T00:55:30","date_gmt":"2015-10-28T00:55:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/affiliatewp-affiliate-info\/"},"modified":"2025-05-08T18:59:40","modified_gmt":"2025-05-08T18:59:40","slug":"affiliatewp-affiliate-info","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/affiliatewp-affiliate-info\/","author":652472,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.0","stable_tag":"1.2.0","tested":"6.8.5","requires":"5.2","requires_php":"7.4","requires_plugins":null,"header_name":"AffiliateWP - Affiliate Info","header_author":"AffiliateWP","header_description":"","assets_banners_color":"ed6d62","last_updated":"2025-05-08 18:59:40","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/affiliatewp.com\/addons\/affiliate-info\/","header_author_uri":"https:\/\/affiliatewp.com","rating":0,"author_block_rating":0,"active_installs":1000,"downloads":22719,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"sumobi","date":"2015-10-29 04:53:37"},"1.0.2":{"tag":"1.0.2","author":"sumobi","date":"2015-12-05 07:28:24"},"1.0.3":{"tag":"1.0.3","author":"sumobi","date":"2015-12-09 04:33:20"},"1.0.4":{"tag":"1.0.4","author":"sumobi","date":"2017-08-10 06:08:16"},"1.0.5":{"tag":"1.0.5","author":"paninapress","date":"2021-03-23 01:17:27"},"1.1":{"tag":"1.1","author":"dbeja","date":"2021-06-30 15:48:57"},"1.2.0":{"tag":"1.2.0","author":"aubreypwd","date":"2025-05-08 18:59:40"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":1274384,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.1","1.2.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[241880,241878,5475,53123,241879],"plugin_category":[35,45,58],"plugin_contributors":[80077,78291],"plugin_business_model":[],"class_list":["post-39768","plugin","type-plugin","status-publish","hentry","plugin_tags-affiliate-details","plugin_tags-affiliate-info","plugin_tags-affiliatewp","plugin_tags-referral-tracking","plugin_tags-show-referrer","plugin_category-advertising","plugin_category-ecommerce","plugin_category-user-management","plugin_contributors-aubreypwd","plugin_contributors-sumobi","plugin_committers-cklosows","plugin_committers-davsilveira","plugin_committers-smub","plugin_committers-sumobi"],"banners":{"banner":"https:\/\/ps.w.org\/affiliatewp-affiliate-info\/assets\/banner-772x250.png?rev=1274384","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/affiliatewp-affiliate-info_ed6d62.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Affiliate Info allows you to show affiliate information based on the affiliate\ncurrently being tracked. When a user clicks an affiliate\u2019s referral URL and\narrives on your website, the affiliate\u2019s ID is stored by AffiliateWP.\nAffiliate Info simply shows information based on the tracked affiliate.<\/p>\n\n<p>Let\u2019s say you have an affiliate named John who shares his referral URL.\nAny user that clicks on John\u2019s referral link can now see a variety of information\nabout John, anywhere on your website.<\/p>\n\n<p>You can show:<\/p>\n\n<ul>\n<li>John\u2019s WordPress display name<\/li>\n<li>John\u2019s website URL<\/li>\n<li>John\u2019s email address (be careful with this!)<\/li>\n<li>John\u2019s gravatar image<\/li>\n<li>John\u2019s WordPress username<\/li>\n<li>John\u2019s biographical info (from his WordPress profile)<\/li>\n<li>John's Twitter username<\/li>\n<li>John's Facebook URL<\/li>\n<li>John's Google+ URL<\/li>\n<\/ul>\n\n<p>There are currently 9 shortcodes to show the information above:<\/p>\n\n<ol>\n<li>[affiliate_info_name]<\/li>\n<li>[affiliate_info_website]<\/li>\n<li>[affiliate_info_email]<\/li>\n<li>[affiliate_info_gravatar]<\/li>\n<li>[affiliate_info_username]<\/li>\n<li>[affiliate_info_bio]<\/li>\n<li>[affiliate_info_twitter]<\/li>\n<li>[affiliate_info_facebook]<\/li>\n<li>[affiliate_info_googleplus]<\/li>\n<\/ol>\n\n<p>There's also 2 shortcodes that you can embed the above in:<\/p>\n\n<ol>\n<li>[affiliate_info_referred] - show content only when an affiliate is being tracked<\/li>\n<li>[affiliate_info_not_referred] - show content only when an affiliate is not being tracked. Useful for providing a fallback.<\/li>\n<\/ol>\n\n<p>If you\u2019re a developer you can access this information directly with some useful\nPHP functions.<\/p>\n\n<p>Affiliate Info also works in tandem with AffiliateWP\u2019s Credit Last Referrer option\nwhich means the information will change each time a new referral URL is used.<\/p>\n\n<p>Some potential uses for this add-on include:<\/p>\n\n<p><strong>Showing the customer who referred them<\/strong><\/p>\n\n<p>Show a custom message based on the affiliate being tracked. For example,\n\u201cYou\u2019ve been referred by John\u201d or \u201cYour site representative is John\u201d.<\/p>\n\n<p>For example:<\/p>\n\n<p>Your site representative is [affiliate_info_name]<\/p>\n\n<p>If no affiliate is being tracked it will just show \"Your site representative is \"\nso use the [affiliate_info_referred] shortcode to make sure nothing is shown when\nno affiliate is being tracked.<\/p>\n\n<p>For example:<\/p>\n\n<p>[affiliate_info_referred]Your site representative is [affiliate_info_name][\/affiliate_info_referred]<\/p>\n\n<p><strong>Allow the site visitor to contact the affiliate<\/strong><\/p>\n\n<p>There may be instances where your affiliates are in direct contact with your customers. Show the affiliate's email address, or add a form (Gravity Forms or another form plugin) which sends an email to the affiliate being tracked.<\/p>\n\n<p>Note, if you're going to show any form of email address out in the wild, make sure you protect it using one of the many plugins available on the WordPress repo.<\/p>\n\n<p><strong>Create a landing page<\/strong><\/p>\n\n<p>Create a landing page for your products that show the current tracked affiliate's information. This is especially useful if an affiliate does not have a website, or you want more control over how your products are advertised. Affiliates can link directly to your landing page with their referral URL, and their information will be displayed.<\/p>\n\n<p><strong>What is AffiliateWP?<\/strong><\/p>\n\n<p><a href=\"https:\/\/affiliatewp.com\/\" title=\"AffiliateWP\">AffiliateWP<\/a> provides a complete affiliate management system for your WordPress website that seamlessly integrates with all major WordPress e-commerce and membership platforms. It aims to provide everything you need in a simple, clean, easy to use system that you will love to use.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unpack the entire contents of this plugin zip file into your <code>wp-content\/plugins\/<\/code> folder locally<\/li>\n<li>Upload to your site<\/li>\n<li>Navigate to <code>wp-admin\/plugins.php<\/code> on your site (your WP Admin plugin page)<\/li>\n<li>Activate this plugin<\/li>\n<\/ol>\n\n<p>OR you can just install it with WordPress by going to Plugins &gt;&gt; Add New &gt;&gt; and type this plugin's name<\/p>\n\n<!--section=changelog-->\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>New: Requires WordPress 5.2 minimum<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>New: Enforce minimum dependency requirements checking<\/li>\n<li>New: Requires PHP 5.6 minimum<\/li>\n<li>New: Requires WordPress 5.0 minimum<\/li>\n<li>New: Requires AffiliateWP 2.6 minimum<\/li>\n<li>New: Add translation strings for Polish<\/li>\n<li>Improved: Allow language translation files to be handled by WordPress.org<\/li>\n<li>Improved: Add size parameter to [affiliate_info_gravatar] shortcode<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Fix: Compatibility with the Affiliate Landing Pages pro add-on, allowing affiliate info to be shown on first page load.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>New: Compatibility with the Custom Affiliate Slugs pro add-on<\/li>\n<li>Fix: Affiliate info not being retrieved on first page load due to a recent change in AffiliateWP<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Fix: Affiliate ID was not being retrieved correctly when a static front page is used.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Fix: Removed old admin setting that was not needed.<\/li>\n<li>Fix: Affiliate ID was not being retrieved correctly on first page load when using usernames in the affiliate referral URLs<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>New: [affiliate_info_referred] shortcode to show content only when an affiliate is being tracked<\/li>\n<li>New: [affiliate_info_not_referred] shortcode to show content only when an affiliate is not being tracked. Useful for providing a fallback.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Display information based on the affiliate&#039;s referral URL.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/39768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=39768"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/smub"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=39768"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=39768"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=39768"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=39768"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=39768"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=39768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}