Skip to content

Instantly share code, notes, and snippets.

@PaulHughes01
Created April 29, 2012 20:54
Show Gist options
  • Select an option

  • Save PaulHughes01/2553203 to your computer and use it in GitHub Desktop.

Select an option

Save PaulHughes01/2553203 to your computer and use it in GitHub Desktop.
Wordpress Install Affiliate themes/tribe_affiliate_data.php file
<?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