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.
Method of the class: AbstractPaymentGatewaySettingsSchema{}
No Hooks.
Returns
Array.
Usage
// protected - for code of main (parent) or child class $result = $this->get_custom_groups_for_gateway( $gateway ): array;
- $gateway(WC_Payment_Gateway) (required)
- Gateway instance.
AbstractPaymentGatewaySettingsSchema::get_custom_groups_for_gateway() AbstractPaymentGatewaySettingsSchema::get custom groups for gateway code WC 10.4.3
protected function get_custom_groups_for_gateway( WC_Payment_Gateway $gateway ): array {
return array();
}