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.

Method of the class: SiteHealth{}

No Hooks.

Returns

bool.

Usage

// private - for code of main (parent) class only
$result = $this->should_show_hpos_sync_on_read_status();

SiteHealth::should_show_hpos_sync_on_read_status() code WC 11.1.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();
}