WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Notes::prepare_note_data_for_response() public WC 1.0

Prepare note data.

{} It's a method of the class: Notes{}

No Hooks.

Return

WP_REST_Response. $response Response data.

Usage

$Notes = new Notes();
$Notes->prepare_note_data_for_response( $note, $request );
$note(Note) (required)
Note data.
$request(WP_REST_Request) (required)
Request object.

Code of Notes::prepare_note_data_for_response() WC 5.3.0

<?php
public function prepare_note_data_for_response( $note, $request ) {
	$note = $note->get_data();
	$note = $this->prepare_item_for_response( $note, $request );
	return $this->prepare_response_for_collection( $note );
}