Automattic\WooCommerce\Internal\RestApi\Routes\V4\Settings\PaymentGateways\Schema
AbstractPaymentGatewaySettingsSchema::get_field_options
Get options for specific gateway fields.
Override this method in gateway-specific schema classes to provide dynamic options for select/multiselect fields.
Метод класса: AbstractPaymentGatewaySettingsSchema{}
Хуков нет.
Возвращает
array. Field options.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_field_options( $field_id ): array;
- $field_id(строка) (обязательный)
- Field ID.
Код AbstractPaymentGatewaySettingsSchema::get_field_options() AbstractPaymentGatewaySettingsSchema::get field options WC 11.2.2
protected function get_field_options( string $field_id ): array {
return array();
}