Skip to content

Installation & Setup

Requirements

Requirement Version
PHP 7.4+
WordPress 5.8+
WooCommerce 6.0+
Action Scheduler bundled with WooCommerce
barberklingen/base-plugin ^2

The private Composer repository at https://packagist.barberklingen.dk must be accessible for barberklingen/base-plugin.

Install via Composer

Add the private repository and the package to your project's composer.json:

{
  "repositories": [
    {
      "type": "composer",
      "url": "https://packagist.barberklingen.dk"
    }
  ],
  "require": {
    "barberklingen/async-bulk-order-completion": "*"
  }
}

Then run:

composer install

Bootstrap

Load the plugin in your WordPress bootstrap (mu-plugin or theme functions.php):

require_once __DIR__ . '/vendor/barberklingen/async-bulk-order-completion/src/AsyncBulkOrderCompletionLoader.php';
AsyncBulkOrderCompletion\AsyncBulkOrderCompletionLoader::get_instance();

Database setup

Run the database setup once on activation (e.g. in a register_activation_hook callback):

register_activation_hook( __FILE__, function () {
    AsyncBulkOrderCompletion\Data\Database::setup();
} );

This creates: - {prefix}order_completion_jobs - {prefix}order_completion_orders

HPOS compatibility

The plugin detects HPOS automatically via WCAdminRequest::is_HPOS_enabled() and registers bulk action filters for the correct admin screen (woocommerce_page_wc-orders vs edit-shop_order). No additional configuration is required.