Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::has_account
Determine if WooPayments has an account set up.
Метод класса: WooPaymentsService{}
Хуков нет.
Возвращает
true|false. Whether WooPayments has an account set up.
Использование
// private - только в коде основоного (родительского) класса $result = $this->has_account(): bool;
Код WooPaymentsService::has_account() WooPaymentsService::has account WC 10.8.1
private function has_account(): bool {
return $this->provider->is_account_connected( $this->get_payment_gateway() );
}