WC_Helper::is_site_connected()public staticWC 1.0

Checks if access_token exists in auth option.

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

Хуков нет.

Возвращает

true|false.

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

$result = WC_Helper::is_site_connected(): bool;

Код WC_Helper::is_site_connected() WC 9.3.3

public static function is_site_connected(): bool {
	$auth = WC_Helper_Options::get( 'auth' );

	// If `access_token` is empty, there's no active connection.
	return ! empty( $auth['access_token'] );
}