WC_REST_General_Settings_V4_Controller::get_update_argsprivateWC 1.0

Get update arguments for the endpoint.

Method of the class: WC_REST_General_Settings_V4_Controller{}

No Hooks.

Returns

Array.

Usage

// private - for code of main (parent) class only
$result = $this->get_update_args();

WC_REST_General_Settings_V4_Controller::get_update_args() code WC 10.3.6

private function get_update_args() {
	$args = array(
		'values' => array(
			'description'          => __( 'Flat key-value mapping of setting field values to update.', 'woocommerce' ),
			'type'                 => 'object',
			'required'             => false,
			'additionalProperties' => array(
				'description' => __( 'Setting field value.', 'woocommerce' ),
				'type'        => array( 'string', 'number', 'array', 'boolean' ),
			),
		),
	);

	return $args;
}