%s

', esc_html( sprintf( /* translators: 1: plugin file of the copy already running, 2: plugin file of the copy that stopped. */ __( 'Maple Parcel is already running from %1$s, so the copy in %2$s has stopped. Only one copy can run at a time. Deactivate and delete the one you do not want; if you have bought Maple Parcel Pro, keep the folder whose name ends in "-premium".', 'maple-parcel' ), defined( 'BBMMP_BASENAME' ) ? BBMMP_BASENAME : __( 'another folder', 'maple-parcel' ), plugin_basename( __FILE__ ) ) ) ); } ); return; } define( 'BBMMP_VERSION', '1.1.1' ); define( 'BBMMP_FILE', __FILE__ ); define( 'BBMMP_PATH', plugin_dir_path( __FILE__ ) ); define( 'BBMMP_URL', plugin_dir_url( __FILE__ ) ); define( 'BBMMP_BASENAME', plugin_basename( __FILE__ ) ); /* * PSR-4 for our own namespace only. Composer's loader is not shipped. The only * runtime dependency (BoxPacker, for Pro box packing) is prefixed by Strauss * into includes/Premium/Vendor/, which Pro loads with Strauss's own classmap. */ spl_autoload_register( static function ( string $class_name ): void { $prefix = 'BlueBrainMedia\\MapleParcel\\'; if ( ! str_starts_with( $class_name, $prefix ) ) { return; } $file = BBMMP_PATH . 'includes/' . str_replace( '\\', '/', substr( $class_name, strlen( $prefix ) ) ) . '.php'; if ( is_readable( $file ) ) { require $file; } } ); register_activation_hook( __FILE__, array( BlueBrainMedia\MapleParcel\Plugin::class, 'activate' ) ); add_action( 'before_woocommerce_init', static function (): void { if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { // Orders are read and written through WC_Order only. \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); // Rates come from a standard shipping method, which the Cart and Checkout blocks call like any other. \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', __FILE__, true ); } } ); add_action( 'plugins_loaded', array( BlueBrainMedia\MapleParcel\Plugin::class, 'boot' ) );