Automattic\WooCommerce\Internal\ProductAttributesLookup
CLIRunner::regenerate
Regenerate the product attributes lookup table immediately, without using scheduled tasks.
OPTIONS
- [--force]
- Don't prompt for confirmation if the product attributes lookup table isn't empty.
- [--from-scratch]
- Start table regeneration from scratch even if a regeneration is already in progress.
- [--disable-db-optimization]
- Don't use optimized database access even if products are stored as custom post types.
- [--batch-size=<size>]
- How many products to process in each iteration of the loop.
--- default: 10
---
EXAMPLES
wp wc palt regenerate --force --from-scratch --batch-size=20
Method of the class: CLIRunner{}
No Hooks.
Returns
null. Nothing (null).
Usage
$CLIRunner = new CLIRunner(); $CLIRunner->regenerate( $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() CLIRunner::regenerate code WC 10.3.3
public function regenerate( array $args = array(), array $assoc_args = array() ) {
return $this->invoke( 'regenerate_core', $args, $assoc_args );
}