PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/stockphotos.kerihosting.com/wp-content/plugins/edd-commissions/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/stockphotos.kerihosting.com/wp-content/plugins/edd-commissions/edd-commissions.php

<?php
/*
Plugin Name: Easy Digital Downloads - Commissions
Plugin URI: http://easydigitaldownloads.com/extension/commissions
Description: Record commisions automatically for users in your site when downloads are sold
Author: Pippin Williamson
Author URI: http://pippinsplugins.com
Contributors: mordauk
Version: 2.7.3
*/


/*
|--------------------------------------------------------------------------
| CONSTANTS
|--------------------------------------------------------------------------
*/

// plugin folder url
if(!defined('EDDC_PLUGIN_URL')) {
	define('EDDC_PLUGIN_URL', plugin_dir_url( __FILE__ ));
}
// plugin folder path
if(!defined('EDDC_PLUGIN_DIR')) {
	define('EDDC_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
}
// plugin root file
if(!defined('EDDC_PLUGIN_FILE')) {
	define('EDDC_PLUGIN_FILE', __FILE__ );
}

define( 'EDD_COMMISSIONS_VERSION', '2.7.3' );


/*
|--------------------------------------------------------------------------
| INTERNATIONALIZATION
|--------------------------------------------------------------------------
*/

function eddc_textdomain() {
	load_plugin_textdomain( 'eddc', false, dirname( plugin_basename( EDDC_PLUGIN_FILE ) ) . '/languages/' );
}
add_action('init', 'eddc_textdomain');



/*
|--------------------------------------------------------------------------
| INCLUDES
|--------------------------------------------------------------------------
*/


include_once(EDDC_PLUGIN_DIR . 'includes/commission-functions.php');
include_once(EDDC_PLUGIN_DIR . 'includes/post-type.php');
include_once(EDDC_PLUGIN_DIR . 'includes/user-meta.php');
include_once(EDDC_PLUGIN_DIR . 'includes/rest-api.php');

if( is_admin() ) {

	if( class_exists( 'EDD_License' ) ) {
		$eddc_license = new EDD_License( __FILE__, 'Commissions', EDD_COMMISSIONS_VERSION, 'Pippin Williamson' );
	}
	//include_once(EDDC_PLUGIN_DIR . 'includes/scheduled-payouts.php');
	//include_once(EDDC_PLUGIN_DIR . 'includes/masspay/class-paypal-masspay.php');
	include_once(EDDC_PLUGIN_DIR . 'includes/reports.php');
	include_once(EDDC_PLUGIN_DIR . 'includes/settings.php');
	include_once(EDDC_PLUGIN_DIR . 'includes/admin-page.php');
	include_once(EDDC_PLUGIN_DIR . 'includes/metabox.php');
	include_once(EDDC_PLUGIN_DIR . 'includes/EDD_C_List_Table.php');
	include_once(EDDC_PLUGIN_DIR . 'includes/upgrades.php');
	include_once(EDDC_PLUGIN_DIR . 'includes/widgets.php');
} else {
	include_once(EDDC_PLUGIN_DIR . 'includes/short-codes.php');
	include_once(EDDC_PLUGIN_DIR . 'includes/adaptive-payments.php');
}