Automattic\WooCommerce\Internal\ProductAttributesLookup
CLIRunner::regenerate_for_product()
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
Method of the class: CLIRunner{}
No Hooks.
Return
null
. Nothing (null).
Usage
$CLIRunner = new CLIRunner(); $CLIRunner->regenerate_for_product( $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::regenerate_for_product() CLIRunner::regenerate for product code WC 9.3.3
public function regenerate_for_product( array $args = array(), array $assoc_args = array() ) { return $this->invoke( 'regenerate_for_product_core', $args, $assoc_args ); }