Automattic\WooCommerce\Internal\StockNotifications
Telemetry::get_settings
The feature's settings, as merchants configured them.
Метод класса: Telemetry{}
Хуков нет.
Возвращает
array<string, mixed>.
Использование
$result = Telemetry::get_settings(): array;
Код Telemetry::get_settings() Telemetry::get settings WC 11.2.2
private static function get_settings(): array {
return array(
'allow_signups' => Config::allows_signups() ? 'yes' : 'no',
'require_double_opt_in' => Config::requires_double_opt_in() ? 'yes' : 'no',
'require_account' => Config::requires_account() ? 'yes' : 'no',
'unverified_deletions_days_threshold' => Config::get_unverified_deletion_days_threshold(),
'hide_out_of_stock_items' => get_option( 'woocommerce_hide_out_of_stock_items', 'no' ),
);
}