Automattic\WooCommerce\Internal\ProductAttributesLookup

CLIRunner::abort_regeneration_core()privateWC 1.0

Core method for the "abort_regeneration" command.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->abort_regeneration_core( $args, $assoc_args );
$args(массив) (обязательный)
Positional arguments passed to the command.
$assoc_args(массив) (обязательный)
Associative arguments (options) passed to the command.

Код CLIRunner::abort_regeneration_core() WC 9.7.1

private function abort_regeneration_core( array $args, array $assoc_args ) {
	$this->data_regenerator->abort_regeneration( false );
	$table_name = $this->lookup_data_store->get_lookup_table_name();
	$this->success( "The regeneration of the data in the %W{$table_name}%n table has been aborted." );
	if ( array_key_exists( 'cleanup', $assoc_args ) ) {
		$this->cleanup_regeneration_progress( array(), array() );
	}
}