WordPress at a glance
function is not described

Automattic\WooCommerce\Admin

Loader::get_custom_settings() public WC 1.0

Gets custom settings used for WC Admin.

{} It's a method of the class: Loader{}

No Hooks.

Return

Array. Nothing.

Usage

$result = Loader::get_custom_settings( $settings );
$settings(array) (required)
Array of settings to merge into.

Code of Loader::get_custom_settings() WC 5.3.0

<?php
public static function get_custom_settings( $settings ) {
	$wc_rest_settings_options_controller = new \WC_REST_Setting_Options_Controller();
	$wc_admin_group_settings             = $wc_rest_settings_options_controller->get_group_settings( 'wc_admin' );
	$settings['wcAdminSettings']         = array();

	foreach ( $wc_admin_group_settings as $setting ) {
		if ( ! empty( $setting['id'] ) ) {
			$settings['wcAdminSettings'][ $setting['id'] ] = $setting['value'];
		}
	}
	return $settings;
}