Automattic\WooCommerce\Internal\ProductAttributesLookup

LookupDataStore::regeneration_was_aborted()publicWC 1.0

Tells if the last lookup table regeneration process started was aborted (via deleting the 'woocommerce_attribute_lookup_regeneration_in_progress' option).

Method of the class: LookupDataStore{}

No Hooks.

Return

true|false. True if the last lookup table regeneration process was aborted.

Usage

$LookupDataStore = new LookupDataStore();
$LookupDataStore->regeneration_was_aborted(): bool;

LookupDataStore::regeneration_was_aborted() code WC 8.6.1

public function regeneration_was_aborted(): bool {
	return get_option( 'woocommerce_attribute_lookup_regeneration_aborted' ) === 'yes';
}