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

AbstractPaymentGatewaySettingsSchema::get_custom_groups_for_gateway │ protected │ WC 1.0

Get custom groups for specific gateways.

Override this method in gateway-specific schema classes to provide custom groupings.

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

Хуков нет.

Возвращает

array.

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

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

Код AbstractPaymentGatewaySettingsSchema::get_custom_groups_for_gateway() WC 11.2.2

protected function get_custom_groups_for_gateway( WC_Payment_Gateway $gateway ): array {
	return array();
}