Automattic\WooCommerce\Internal\StockNotifications
Telemetry::get_settings
The feature's settings, as merchants configured them.
Method of the class: Telemetry{}
No Hooks.
Returns
array<string, mixed>.
Usage
$result = Telemetry::get_settings(): array;
Telemetry::get_settings() Telemetry::get settings code 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' ),
);
}