Automattic\WooCommerce\Internal\ProductAttributesLookup

CLIRunner::abort_regeneration_coreprivateWC 1.0

Core method for the "abort_regeneration" command.

Method of the class: CLIRunner{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->abort_regeneration_core( $args, $assoc_args );
$args(array) (required)
Positional arguments passed to the command.
$assoc_args(array) (required)
Associative arguments (options) passed to the command.

CLIRunner::abort_regeneration_core() code WC 10.8.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() );
	}
}