WordPress at a glance
filter is not described

woocommerce_rest_prepare_note filter-hook . WC 1.0

Filter a note returned from the API.

Allows modification of the note data right before it is returned.

Usage

add_filter( 'woocommerce_rest_prepare_note', 'filter_function_name_3210', 10, 3 );
function filter_function_name_3210( $response, $data, $request ){
	// filter...

	return $response;
}
$response(WP_REST_Response)
The response object.
$data(array)
The original note.
$request(WP_REST_Request)
Request used to generate the response.

Where the hook is called

Notes::prepare_item_for_response()
woocommerce_rest_prepare_note
woocommerce/packages/woocommerce-admin/src/API/Notes.php 464
return apply_filters( 'woocommerce_rest_prepare_note', $response, $data, $request );

Where in WP core the hook is used WooCommerce

woocommerce/includes/class-woocommerce.php 206
add_filter( 'woocommerce_rest_prepare_note', array( 'WC_Admin_Notices', 'prepare_note_with_nonce' ) );