Automattic\WooCommerce\Internal\ProductAttributesLookup

CLIRunner::regenerate_for_product()publicWC 1.0

Regenerate the product attributes lookup table data for one single product.

OPTIONS

<product-id>
The id of the product for which the data will be regenerated.
[--disable-db-optimization]
Don't use optimized database access even if products are stored as custom post types.

EXAMPLES

wp wc palt regenerate_for_product 34 --disable-db-optimization

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код CLIRunner::regenerate_for_product() WC 9.7.1

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