Automattic\WooCommerce\Internal\Admin

SiteHealth::should_show_hpos_sync_on_read_status │ private │ WC 1.0

Determine whether the HPOS sync-on-read status should be shown.

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

Хуков нет.

Возвращает

bool.

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

// private - только в коде основоного (родительского) класса
$result = $this->should_show_hpos_sync_on_read_status();

Код SiteHealth::should_show_hpos_sync_on_read_status() WC 11.2.2

private function should_show_hpos_sync_on_read_status() {
	return OrderUtil::custom_orders_table_usage_is_enabled()
		&& wc_get_container()->get( DataSynchronizer::class )->data_sync_is_enabled();
}