get( Activecampaign_For_Woocommerce_Activator::class ); $activator->activate(); } /** * The code that runs during plugin deactivation. * This action is documented in includes/class-activecampaign-for-woocommerce-deactivator.php * * @since 1.0.0 */ function activecampaign_for_woocommerce_deactivate() { $deactivator = new Activecampaign_For_Woocommerce_Deactivator(); $deactivator->deactivate(); } register_activation_hook( __FILE__, 'activecampaign_for_woocommerce_activate' ); register_deactivation_hook( __FILE__, 'activecampaign_for_woocommerce_deactivate' ); /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 * * @param Container $container The PHP DI container instance. * * @throws \DI\DependencyException Dependency exception. * @throws \DI\NotFoundException Not found exception. */ function activecampaign_for_woocommerce_run( Container $container ) { $plugin = $container->get( Activecampaign_For_Woocommerce::class ); $plugin->run(); } /** * WooCommerce dependency alert. * * Alert the administrator if WooCommerce is unavailable. * * @since __NEXT__ * * @return void */ function activecampaign_for_woocommerce_alert_woocommerce_not_available() { echo "
The ActiveCampaign for WooCommerce plugin is not available because WooCommerce is either not installed or not activated. Please install and activate WooCommerce.