Automattic\WooCommerce\Internal\Admin
SiteHealth::should_show_hpos_sync_on_read_status
Determine whether the HPOS sync-on-read status should be shown.
Метод класса: SiteHealth{}
Хуков нет.
Возвращает
true|false.
Использование
// private - только в коде основоного (родительского) класса $result = $this->should_show_hpos_sync_on_read_status();
Код SiteHealth::should_show_hpos_sync_on_read_status() SiteHealth::should show hpos sync on read status WC 11.0.1
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();
}