WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

DataStore::get_notes() public WC 1.0

Return an ordered list of notes.

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

No Hooks.

Return

Array. An array of objects containing a note id.

Usage

$DataStore = new DataStore();
$DataStore->get_notes( $args );
$args(array)
Query arguments.

Code of DataStore::get_notes() WC 5.2.2

<?php
public function get_notes( $args = array() ) {
	global $wpdb;

	$defaults = array(
		'per_page' => get_option( 'posts_per_page' ),
		'page'     => 1,
		'order'    => 'DESC',
		'orderby'  => 'date_created',
	);
	$args     = wp_parse_args( $args, $defaults );

	$offset        = $args['per_page'] * ( $args['page'] - 1 );
	$where_clauses = $this->get_notes_where_clauses( $args );

	$query = $wpdb->prepare(
		// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQL.InterpolatedNotPrepared
		"SELECT * FROM {$wpdb->prefix}wc_admin_notes WHERE 1=1{$where_clauses} ORDER BY {$args['orderby']} {$args['order']} LIMIT %d, %d",
		$offset,
		$args['per_page']
	);

	return $wpdb->get_results( $query ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
}