Automattic\WooCommerce\Database\Migrations\CustomOrderTable
CLIRunner::migrate
[Deprecated] Usewp wc hpos sync instead. 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 migrate --batch-size=500
Метод класса: CLIRunner{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$CLIRunner = new CLIRunner(); $CLIRunner->migrate( $args, $assoc_args );
- $args(массив)
- Positional arguments passed to the command.
По умолчанию:array() - $assoc_args(массив)
- Associative arguments (options) passed to the command.
По умолчанию:array()
Код CLIRunner::migrate() CLIRunner::migrate WC 11.1.0
public function migrate( array $args = array(), array $assoc_args = array() ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed -- for backwards compat.
WP_CLI::log( __( 'Migrate command is deprecated. Please use `sync` instead.', 'woocommerce' ) );
}