WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Notes::get_items() public WC 1.0

Get all notes.

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

No Hooks.

Return

WP_REST_Response. Nothing.

Usage

$Notes = new Notes();
$Notes->get_items( $request );
$request(WP_REST_Request) (required)
Request data.

Code of Notes::get_items() WC 5.3.0

<?php
public function get_items( $request ) {
	$query_args = $this->prepare_objects_query( $request );

	$notes = NotesRepository::get_notes( 'edit', $query_args );

	$data = array();
	foreach ( (array) $notes as $note_obj ) {
		$note   = $this->prepare_item_for_response( $note_obj, $request );
		$note   = $this->prepare_response_for_collection( $note );
		$data[] = $note;
	}

	$response = rest_ensure_response( $data );
	$response->header( 'X-WP-Total', NotesRepository::get_notes_count( $query_args['type'], $query_args['status'] ) );

	return $response;
}