WooCommerce Code Reference

ImportCli
in package

Class ImportCli

Table of Contents

$schema_path  : string
Schema path
__construct()  : mixed
ImportCli constructor.
run()  : void
Run the import process.

Properties

Methods

__construct()

ImportCli constructor.

public __construct(string $schema_path) : mixed
Parameters
$schema_path : string

The path to the schema file.

Return values
mixed

run()

Run the import process.

public run(array<string|int, mixed> $optional_args) : void
Parameters
$optional_args : array<string|int, mixed>

Optional arguments.

Return values
void