WC_REST_Settings_Controller::update_item()publicWC 1.0

Update a setting.

Method of the class: WC_REST_Settings_Controller{}

No Hooks.

Return

WP_Error|WP_REST_Response.

Usage

$WC_REST_Settings_Controller = new WC_REST_Settings_Controller();
$WC_REST_Settings_Controller->update_item( $request );
$request(WP_REST_Request) (required)
Request data.

WC_REST_Settings_Controller::update_item() code WC 8.9.0

public function update_item( $request ) {
	$options_controller = new WC_REST_Setting_Options_Controller();
	$response           = $options_controller->update_item( $request );

	return $response;
}