Automattic\WooCommerce\Admin\Features\OnboardingTasks

Init::get_settings()public staticWC 1.0

Get task item data for settings filter.

Метод класса: Init{}

Хуков нет.

Возвращает

Массив.

Использование

$result = Init::get_settings();

Код Init::get_settings() WC 9.3.3

public static function get_settings() {
	$settings            = array();
	$wc_pay_is_connected = false;
	if ( class_exists( '\WC_Payments' ) ) {
		$wc_payments_gateway = \WC_Payments::get_gateway();
		$wc_pay_is_connected = method_exists( $wc_payments_gateway, 'is_connected' )
			? $wc_payments_gateway->is_connected()
			: false;
	}

	return $settings;
}