Affiliates, Affiliates Pro and Affiliates Enterprise with Events Manager.
* Author: itthinx, proaktion, gtsiokos
* Author URI: http://www.itthinx.com/
* Donate-Link: http://www.itthinx.com/shop/affiliates-enterprise/
* License: GPLv3
* Version: 3.0.0
*/
if ( !defined( 'ABSPATH' ) ) {
exit;
}
define( 'AFFILIATES_EVENTS_MANAGER_VERSION', '3.0.0' );
define( 'AFFILIATES_EVENTS_MANAGER_FILE', __FILE__ );
define( 'AFFILIATES_EVENTS_MANAGER_PLUGIN_DOMAIN', 'affiliates-events-manager' );
/**
* Get loaded plugins
*/
function affiliates_events_manager_plugins_loaded() {
if (
defined( 'AFFILIATES_EXT_VERSION' ) &&
version_compare( AFFILIATES_EXT_VERSION, '3.0.0' ) >= 0 &&
class_exists( 'Affiliates_Referral' ) &&
(
!defined( 'Affiliates_Referral::DEFAULT_REFERRAL_CALCULATION_KEY' ) ||
!get_option( Affiliates_Referral::DEFAULT_REFERRAL_CALCULATION_KEY, null )
)
) {
$lib = '/lib';
} else {
$lib = '/lib-2';
}
define( 'AFFILIATES_EVENTS_MANAGER_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'AFFILIATES_EVENTS_MANAGER_LIB', AFFILIATES_EVENTS_MANAGER_DIR . $lib );
define( 'AFFILIATES_EVENTS_MANAGER_PLUGIN_URL', plugins_url( 'affiliates-events-manager' ) );
require_once AFFILIATES_EVENTS_MANAGER_LIB . '/class-affiliates-events-manager.php';
}
add_action( 'plugins_loaded', 'affiliates_events_manager_plugins_loaded' );