Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments

WooPaymentsService::has_working_wpcom_connection │ private │ WC 1.0

Check if the store has a working WPCOM connection.

The store is considered to have a working WPCOM connection if:

  • The store is connected to WPCOM (blog ID and tokens are set).
  • The store connection has a connected owner (connection owner is set).

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

Хуков нет.

Возвращает

bool. Whether the store has a working WPCOM connection.

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

// private - только в коде основоного (родительского) класса
$result = $this->has_working_wpcom_connection(): bool;

Код WooPaymentsService::has_working_wpcom_connection() WC 11.3.0

private function has_working_wpcom_connection(): bool {
	return $this->wpcom_connection_manager->is_connected() && $this->wpcom_connection_manager->has_connected_owner();
}