Automattic\WooCommerce\Admin\Features\OnboardingTasks

Init::get_settings()public staticWC 1.0

Get task item data for settings filter.

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

No Hooks.

Return

Array.

Usage

$result = Init::get_settings();

Code of Init::get_settings() WC 6.6.1

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;
}