Automattic\WooCommerce\DataBase\Migrations\CustomOrderTable

CLIRunner::backfill()publicWC 1.0

Copy order data into the postmeta table.

Note that this could dramatically increase the size of your postmeta table, but is recommended if you wish to stop using the custom orders table plugin.

OPTIONS

[--batch-size=<batch-size>]
The number of orders to process in each batch. Passing a value of 0 will disable batching.
--- default: 500
---

EXAMPLES

# Copy all order data into the post meta table, 500 posts at a time.
wp wc cot backfill --batch-size=500

{} Это метод класса: CLIRunner{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$CLIRunner = new CLIRunner();
$CLIRunner->backfill( $args, $assoc_args );
$args(массив)
Positional arguments passed to the command.
По умолчанию: array()
$assoc_args(массив)
Associative arguments (options) passed to the command.
По умолчанию: array()

Код CLIRunner::backfill() WC 6.7.0

public function backfill( $args = array(), $assoc_args = array() ) {
	return WP_CLI::error( __( 'Error: Backfill is not implemented yet.', 'woocommerce' ) );
}