Automattic\WooCommerce\Internal\ProductAttributesLookup

LookupDataStore::optimized_data_access_is_enabled()publicWC 1.0

Check if the optimized database access setting is enabled.

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

Хуков нет.

Возвращает

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

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

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

Код LookupDataStore::optimized_data_access_is_enabled() WC 9.3.3

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