Automattic\WooCommerce\Internal\ProductAttributesLookup
CLIRunner::initiate_regeneration()
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
Метод класса: CLIRunner{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$CLIRunner = new CLIRunner(); $CLIRunner->initiate_regeneration( $args, $assoc_args );
- $args(массив)
- Positional arguments passed to the command.
По умолчанию: array() - $assoc_args(массив)
- Associative arguments (options) passed to the command.
По умолчанию: array()
Код CLIRunner::initiate_regeneration() CLIRunner::initiate regeneration WC 9.7.1
public function initiate_regeneration( array $args = array(), array $assoc_args = array() ) { return $this->invoke( 'initiate_regeneration_core', $args, $assoc_args ); }