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

AbstractPaymentGatewaySettingsSchema::get_field_optionsprotectedWC 1.0

Get options for specific gateway fields.

Override this method in gateway-specific schema classes to provide dynamic options for select/multiselect fields.

Method of the class: AbstractPaymentGatewaySettingsSchema{}

No Hooks.

Returns

Array. Field options.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_field_options( $field_id ): array;
$field_id(string) (required)
Field ID.

AbstractPaymentGatewaySettingsSchema::get_field_options() code WC 10.4.3

protected function get_field_options( string $field_id ): array {
	return array();
}