Created
December 4, 2018 14:36
-
-
Save wpmudev-sls/5c717d1468a12ced3637dbc72d0b2347 to your computer and use it in GitHub Desktop.
Affiliate - stop counting new blogs as signup - fixed conflict with prosite
This file contains 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 | |
/** | |
* 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