Created
April 29, 2012 20:54
-
-
Save PaulHughes01/2553203 to your computer and use it in GitHub Desktop.
Wordpress Install Affiliate themes/tribe_affiliate_data.php file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Copy and paste the code below (edited as stated in the instructions below) | |
| * into a file called 'tribe_affiliate_data.php' in your themes root directory. | |
| */ | |
| /* | |
| * You may be wondering what this file is doing in your wordpress install. Well, the | |
| * install you've downloaded includes a copy of The Events Calendar by Modern Tribe, and this | |
| * file allows the affiliate you got the install from to make a little extra money from any | |
| * clickthroughs to the main Modern Tribe website. It is completely harmless, and affects your | |
| * install in no way other than to add some affiliate data to a couple of the links to the | |
| * Modern Tribe website. Thanks for helping out! | |
| */ | |
| /* Copy and paste your Events Calendar Pro affiliate URL in between the quotes after `$affiliate_url = `. */ | |
| function tribe_affiliate_link_events_calendar_pro() { | |
| $affiliate_url = 'http://THIS-IS-WHERE-THE-AFFILIATE-URL-GOES'; | |
| return $affiliate_url; | |
| } | |
| add_filter( 'tribe_help_tab_ecp_tribe_url', 'tribe_affiliate_link_events_calendar_pro' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment