'; echo esc_html__( 'Abogo Booking for WooCommerce: dependencies are missing. Please contact the plugin support at azouamauriac@gmail.com', 'abogo-booking' ); echo '
'; } ); return; } require_once ABFW_PATH . 'vendor/autoload.php'; if ( !function_exists( 'abfw_fs' ) ) { /** * Single Freemius SDK instance for the plugin. * * @return Freemius */ function abfw_fs() { global $abfw_fs; if ( !isset( $abfw_fs ) ) { require_once ABFW_PATH . 'vendor/freemius/wordpress-sdk/start.php'; $abfw_fs = fs_dynamic_init( array( 'id' => '39866', 'slug' => 'abogo-booking', 'type' => 'plugin', 'public_key' => 'pk_d8706c2d16c12174f9b62e8d6a3a7', 'is_premium' => false, 'has_addons' => false, 'has_paid_plans' => false, 'is_org_compliant' => true, 'menu' => array( 'slug' => 'abogo_booking', ), 'is_live' => true, ) ); } return $abfw_fs; } abfw_fs(); do_action( 'abfw_fs_loaded' ); // Uninstall cleanup goes through Freemius: it walks every site of a network for us. if ( abfw_fs() ) { abfw_fs()->add_action( 'after_uninstall', array(\AdvancedBooking\Uninstaller::class, 'run') ); } } register_activation_hook( __FILE__, array(\AdvancedBooking\Activator::class, 'activate') ); register_deactivation_hook( __FILE__, array(\AdvancedBooking\Deactivator::class, 'deactivate') ); /** * Declare HPOS and Cart/Checkout Blocks compatibility: bookings are stored in the * plugin's own tables and orders are never written to directly. */ add_action( 'before_woocommerce_init', function () { if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', __FILE__, true ); } } ); /** Admin notice shown when the required WooCommerce plugin is inactive. */ function abfw_woocommerce_missing_notice() { echo ''; echo esc_html__( 'Abogo Booking for WooCommerce requires WooCommerce to be installed and active.', 'abogo-booking' ); echo '