Skip to content

Instantly share code, notes, and snippets.

@wpmudev-sls
Created December 4, 2018 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpmudev-sls/5c717d1468a12ced3637dbc72d0b2347 to your computer and use it in GitHub Desktop.
Save wpmudev-sls/5c717d1468a12ced3637dbc72d0b2347 to your computer and use it in GitHub Desktop.
Affiliate - stop counting new blogs as signup - fixed conflict with prosite
<?php
/**
* Plugin Name: Affiliate - stop counting new blogs as signup - fixed conflict with prosite
* Description: Affiliate - stop counting new blogs as signup - fixed conflict with prosite
* Author: Ariful Islam @ WPMUDEV
* Author URI: https://premium.wpmudev.org/profile/itsarifulislam
* License: GPLv2 or later
*/
add_action( 'wpmu_activate_blog', function() {
global $affiliate;
if ( class_exists('affiliate') && $affiliate instanceof affiliate ) {
remove_action( 'wpmu_activate_blog', array( $affiliate, 'wpmu_activate_blog' ) );
}
}, 8 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment