Automattic\WooCommerce\Internal\ProductAttributesLookup

CLIRunner::initiate_regenerationpublicWC 1.0

Initiate the background regeneration of the product attributes lookup table. The regeneration will happen in the background, using scheduled actions.

OPTIONS

[--force]
Don't prompt for confirmation if the product attributes lookup table isn't empty.

EXAMPLES

wp wc palt initiate_regeneration --force

Method of the class: CLIRunner{}

No Hooks.

Returns

null. Nothing (null).

Usage

$CLIRunner = new CLIRunner();
$CLIRunner->initiate_regeneration( $args, $assoc_args );
$args(array)
Positional arguments passed to the command.
Default: array()
$assoc_args(array)
Associative arguments (options) passed to the command.
Default: array()

CLIRunner::initiate_regeneration() code WC 10.8.1

public function initiate_regeneration( array $args = array(), array $assoc_args = array() ) {
	return $this->invoke( 'initiate_regeneration_core', $args, $assoc_args );
}