Automattic\WooCommerce\Internal\ProductAttributesLookup
LookupDataStore::optimized_data_access_is_enabled()
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() 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' ); }