Automattic\WooCommerce\Admin\Features\OnboardingTasks

Init::get_settings()public staticWC 1.0

Get task item data for settings filter.

Method of the class: Init{}

No Hooks.

Return

Array.

Usage

$result = Init::get_settings();

Init::get_settings() code WC 8.7.0

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