Automattic\WooCommerce\Internal\ProductAttributesLookup

LookupDataStore::optimized_data_access_is_enabled()publicWC 1.0

Check if the optimized database access setting is enabled.

Method of the class: LookupDataStore{}

No Hooks.

Return

true|false. True if the optimized database access setting is enabled.

Usage

$LookupDataStore = new LookupDataStore();
$LookupDataStore->optimized_data_access_is_enabled();

LookupDataStore::optimized_data_access_is_enabled() code WC 9.3.3

public function optimized_data_access_is_enabled() {
	return 'yes' === get_option( 'woocommerce_attribute_lookup_optimized_updates' );
}