WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Internal\ProductAttributesLookup

DataRegenerator::finalize_regeneration() private WC 1.0

Cleanup/final option setup after the regeneration has been completed.

{} It's a method of the class: DataRegenerator{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->finalize_regeneration();

Code of DataRegenerator::finalize_regeneration() WC 5.9.0

private function finalize_regeneration() {
	delete_option( 'woocommerce_attribute_lookup_last_product_id_to_process' );
	delete_option( 'woocommerce_attribute_lookup_last_products_page_processed' );
	update_option( 'woocommerce_attribute_lookup_enabled', 'no' );
	$this->data_store->unset_regeneration_in_progress_flag();
}