Automattic\WooCommerce\Internal\RestApi\Routes\V4\Settings\PaymentGateways\Schema
AbstractPaymentGatewaySettingsSchema::get_custom_groups_for_gateway
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() AbstractPaymentGatewaySettingsSchema::get custom groups for gateway WC 11.2.2
protected function get_custom_groups_for_gateway( WC_Payment_Gateway $gateway ): array {
return array();
}