WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

DataStore::read_actions() private WC 1.0

Read actions from the database.

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

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->read_actions( $note );
$note(Note) (required) (passed by reference — &)
Admin note.

Code of DataStore::read_actions() WC 5.3.0

<?php
private function read_actions( &$note ) {
	global $wpdb;

	$db_actions = $wpdb->get_results(
		$wpdb->prepare(
			"SELECT action_id, name, label, query, status, is_primary, actioned_text
			FROM {$wpdb->prefix}wc_admin_note_actions
			WHERE note_id = %d",
			$note->get_id()
		)
	);

	$note_actions = array();

	if ( $db_actions ) {
		foreach ( $db_actions as $action ) {
			$note_actions[] = (object) array(
				'id'            => (int) $action->action_id,
				'name'          => $action->name,
				'label'         => $action->label,
				'query'         => $action->query,
				'status'        => $action->status,
				'primary'       => (bool) $action->is_primary,
				'actioned_text' => $action->actioned_text,
			);
		}
	}

	$note->set_actions( $note_actions );
}