Automattic\WooCommerce\Internal\RestApi\Routes\V4\Settings\PaymentGateways\Schema

BacsGatewaySettingsSchema::get_special_field_valuesprotectedWC 1.0

Get values for BACS-specific special fields.

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

Хуков нет.

Возвращает

Массив.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_special_field_values( $gateway ): array;
$gateway(WC_Payment_Gateway) (обязательный)
Gateway instance.

Код BacsGatewaySettingsSchema::get_special_field_values() WC 10.5.2

protected function get_special_field_values( WC_Payment_Gateway $gateway ): array {
	return array(
		'account_details' => get_option( 'woocommerce_bacs_accounts', array() ),
	);
}