'https://octolize.com/', ]; define( 'FLEXIBLE_SHIPPING_VERSION', $plugin_version ); define( $plugin_class_name, $plugin_version ); $requirements = [ 'php' => '7.4', 'wp' => '5.8', 'repo_plugins' => [ [ 'name' => 'woocommerce/woocommerce.php', 'nice_name' => 'WooCommerce', 'version' => '6.6', ], ], ]; add_action( 'before_woocommerce_init', function () { if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', __FILE__, true ); } } ); add_action( 'plugins_loaded', function() { $dependent_plugins_versions = [ 'FLEXIBLE_SHIPPING_LOCATIONS_VERSION' => '3.0.0', 'FLEXIBLE_SHIPPING_PRO_VERSION' =>'3.0.0', 'FLEXIBLE_SHIPPING_VENDORS_VERSION' => '2.0.0', 'OCTOLIZE_BOX_PACKING_VERSION'=> '2.0.0', 'OCTOLIZE_OCTOLIZE_DISTANCE_BASED_SHIPPING_RATES_VERSION' => '2.0.0', 'OCTOLIZE_DELIVERY_DATE_PICKER_VERSION' => '2.0.0', ]; $psr_not_prefixed = false; foreach ( $dependent_plugins_versions as $constant_name => $plugins_version ) { $psr_not_prefixed = $psr_not_prefixed || ( defined( $constant_name ) && version_compare( constant( $constant_name ), $plugins_version, '<' ) ); } define( 'FLEXIBLE_SHIPPING_PSR_NOT_PREFIXED', $psr_not_prefixed ); } ); require __DIR__ . '/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/plugin-init-php52-free.php';