Become An Infinity Wax Affiliate!
'cost_calculator_orders',
);
$plugin_actions = array(
'stm_mailchimp_integration_add_cost-calculator-builder',
'stm_mailchimp_integration_remove_cost-calculator-builder',
'stm_mailchimp_integration_not_allowed_cost-calculator-builder',
);
if ( stm_mailchimp_is_show_page( $plugin_actions, $plugin_pages, array() ) !== false ) {
if ( ! function_exists( 'is_plugin_active' ) ) {
include_once ABSPATH . 'wp-admin/includes/plugin.php';
}
add_action( 'plugins_loaded', 'init_mailchimp', 10, 1 );
function init_mailchimp() {
$installed_plugins = get_plugins();
$pro_slug = 'cost-calculator-builder-pro/cost-calculator-builder-pro.php';
$is_pro_exist = array_key_exists( $pro_slug, $installed_plugins ) || in_array( $pro_slug, $installed_plugins, true );
$init_data = array(
'plugin_title' => 'Cost Calculator',
'plugin_name' => 'cost-calculator-builder',
'is_pro' => $is_pro_exist,
);
if ( function_exists( 'wp_get_current_user' ) ) {
stm_mailchimp_admin_init( $init_data );
}
}
}
}
}
/*** mailchimp integration | end ***/
if ( is_admin() ) {
require_once CALC_PATH . '/includes/admin/enqueue.php';
require_once CALC_PATH . '/includes/admin/item-announcements.php';
require_once CALC_PATH . '/includes/classes/CCBBuilderAdminMenu.php';
}
require_once CALC_PATH . '/includes/functions.php';
require_once CALC_PATH . '/includes/classes/old_custom_fields/autoload.php';
require_once CALC_PATH . '/includes/classes/CCBUpdates.php';
require_once CALC_PATH . '/includes/classes/CCBUpdatesCallbacks.php';
require_once CALC_PATH . '/includes/classes/CCBSettingsData.php';
require_once CALC_PATH . '/includes/classes/CCBAjaxCallbacks.php';
require_once CALC_PATH . '/includes/classes/CCBAjaxAction.php';
require_once CALC_PATH . '/includes/classes/CCBCalculators.php';
require_once CALC_PATH . '/includes/classes/CCBCalculatorTemplates.php';
require_once CALC_PATH . '/includes/classes/CCBCategory.php';
require_once CALC_PATH . '/includes/classes/CCBExportImport.php';
require_once CALC_PATH . '/includes/classes/CCBTemplate.php';
require_once CALC_PATH . '/includes/classes/CCBTranslations.php';
require_once CALC_PATH . '/includes/classes/CCBFrontController.php';
require_once CALC_PATH . '/includes/classes/CCBOrderController.php';
require_once CALC_PATH . '/includes/classes/CCBAdminActions.php';
require_once CALC_PATH . '/includes/classes/CCBEmbedCalculator.php';
require_once CALC_PATH . '/includes/classes/vendor/DataBaseModel.php';
require_once CALC_PATH . '/includes/classes/database/Orders.php';
require_once CALC_PATH . '/includes/classes/database/Payments.php';
require_once CALC_PATH . '/includes/helpers/CCBCleanHelper.php';
require_once CALC_PATH . '/includes/helpers/CCBConditionsHelper.php';
require_once CALC_PATH . '/includes/helpers/CCBFieldsHelper.php';
require_once CALC_PATH . '/includes/classes/appearance/autoload.php';
require_once CALC_PATH . '/widgets/CCB_VC.php';
require_once CALC_PATH . '/includes/widget.php';
require_once CALC_PATH . '/includes/install.php';
require_once CALC_PATH . '/includes/init.php';
require_once CALC_PATH . '/includes/mixpanel/mixpanel_init.php';
if ( defined( 'CCB_PRO_VERSION' ) !== false && version_compare( CCB_PRO_VERSION, '2.1.9', '<' ) ) {
require_once dirname( __FILE__ ) . '/includes/classes/CCBAdminNotices.php';
\cBuilder\Classes\CCBAdminNotices::initWrongVersion();
return;
}