load_plugin(); } /** * Loads plugin files. * * @since 1.6.15 * * @return void */ public function load_plugin() { if ( ! function_exists( 'is_plugin_active' ) ) { include_once ABSPATH . 'wp-admin/includes/plugin.php'; } $is_spectra_active = is_plugin_active( 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php' ); require_once CARTFLOWS_DIR . 'modules/gutenberg/classes/class-cartflows-gb-helper.php'; require_once CARTFLOWS_DIR . 'modules/gutenberg/classes/class-cartflows-gutenberg-editor.php'; require_once CARTFLOWS_DIR . 'modules/gutenberg/classes/class-cartflows-init-blocks.php'; if ( ! $is_spectra_active ) { require_once CARTFLOWS_DIR . 'modules/gutenberg/classes/class-cartflows-spectra-compatibility.php'; } if ( wcf()->is_woo_active ) { require_once CARTFLOWS_DIR . 'modules/gutenberg/dist/blocks/order-detail-form/class-wcfb-order-detail-form.php'; require_once CARTFLOWS_DIR . 'modules/gutenberg/dist/blocks/checkout-form/class-wcfb-checkout-form.php'; require_once CARTFLOWS_DIR . 'modules/gutenberg/dist/blocks/optin-form/class-wcfb-optin-form.php'; } } } Cartflows_Block_Loader::get_instance(); }